PySocks icon indicating copy to clipboard operation
PySocks copied to clipboard

Socket error: 0x5b: Request rejected or failed

Open Murukaen opened this issue 6 years ago • 2 comments

Hi. How can I further debug the above? Thx

Murukaen avatar Feb 09 '19 11:02 Murukaen

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.

rewiaca avatar Nov 04 '19 13:11 rewiaca

Occurred when using the SOCKS4 proxy.

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

NullPointerMaker avatar Jun 11 '21 08:06 NullPointerMaker