Socket error: 0x5b: Request rejected or failed
Murukaen opened this issue · 2 comments
Murukaen commented
Hi. How can I further debug the above? Thx
rewiaca commented
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.
NullPointerMaker commented
Occurred when using the SOCKS4 proxy.
Using python-socks
instead of pysocks
can fix this issue.