Proxy hangs if domain is used
Example: resp = requests.get('https://github.com', proxies=dict(http='socks5://username:[email protected]:9011', https='socks5://username:[email protected]:9011'))
Error: ConnectionRefusedError: [WinError 10061] HTTP: same Error: http://apache.org/img/uima.jpg
or use Firefox with the option: Use Socks5 for DNS
Any Idea for the reason?
It looks like this problem is specific to WIndows. The script works on my LInux and MacOS machines.
I don't have a Windows machine to debug this. This problem can be caused by a firewall or any other anti-virus software, so please double check your environment.
Hi,
I'm experiencing the same problem if using socks5 with chrome or firefoxy with proxy DNS option on Ubuntu 18.04
Here is the message
Traceback (most recent call last): File "/usr/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "server.py", line 53, in handle domain_length = ord(self.connection.recv(1)[0]) TypeError: ord() expected string of length 1, but int found
Would you please take a look?
Thanks