Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mw46d opened this issue Dec 22, 2020 · 1 comment

Comments

@mw46d
Copy link

mw46d commented Dec 22, 2020

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'

@SeaHOH
Copy link
Contributor

SeaHOH commented Dec 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants