Replies: 2 comments 4 replies
-
Sounds like an issue with the proxy (first result about that error suggests their proxy required http: https://stackoverflow.com/questions/65516325/ssl-wrong-version-number-on-python-request). Other reports suggest it's the wrong port number (i.e. you might be sending an HTTPS request to an HTTP port). To actually allow all versions (which I'm not convinced is your problem), you can simply set the minimum_version: https://docs.python.org/3/library/ssl.html#ssl.SSLContext.minimum_version |
Beta Was this translation helpful? Give feedback.
-
I'm trying to narrow down the issue and also get some more logs about the problem. I sent a GET request with a header "Connection: Upgrade" to imitate a websocket connection process. In case of a direct connection it works just fine:
However, sending the same request through a proxy results in an error:
I also tried to find out the TLS requirement of the server with a command |
Beta Was this translation helpful? Give feedback.
-
I'm connecting to a WebSocket server over an HTTP proxy and getting this error:
[[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)]
It works fine with some other HTTP proxies.
I found this comment and I'm trying to follow it to allow all SSL versions (even insecure ones). This is my code:
However, I'm still getting the error:
The resulting SSLContext is as follows:
Beta Was this translation helpful? Give feedback.
All reactions