Anorov/PySocks

1.7.1 & Python 3.8.5: AttributeError: 'SocksiPyConnectionS' object has no attribute '_check_hostname'

mw46d opened this issue · 1 comments

mw46d commented

It looks like today, I have some problems with one httpS host:-( It worked fine yesterday, so not sure, what changed. Firefox can successfully connect to the httpS host via the same ssh/socks proxy. I can connect to other hosts via similar ssh/socks proxies.
sanitized stack trace:
resp = opener.open(req, body, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 525, in open
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output
response = self._open(req, data)
File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 950, in send
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
self.connect()
File "HOME/.local/lib/python3.8/site-packages/sockshandler.py", line 75, in connect
if not self._context.check_hostname and self._check_hostname:
AttributeError: 'SocksiPyConnectionS' object has no attribute '_check_hostname'

sockshandler.py is not recommended, you may try another one, extproxy is based PySocks.