Anorov/PySocks

Socket error: 0x5b: Request rejected or failed

Murukaen opened this issue · 2 comments

Hi. How can I further debug the above? Thx

Same error.

s = socks.socksocket()
s.set_proxy(socks.SOCKS4, proxy, port)
s.connect((host, 80))
s.send(request)

Seems that PySocks doesnt work even with documented examples.
When I remove line with set_proxy, script works fine.

Occurred when using the SOCKS4 proxy.

Using python-socks instead of pysocks can fix this issue.