close

[Solved] SSL: WRONG_VERSION_NUMBER ON PYTHON REQUEST

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error SSL: WRONG_VERSION_NUMBER ON PYTHON REQUEST in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How SSL: WRONG_VERSION_NUMBER ON PYTHON REQUEST Error Occurs?

Today I get the following error SSL: WRONG_VERSION_NUMBER ON PYTHON REQUEST in Python.

How To Solve SSL: WRONG_VERSION_NUMBER ON PYTHON REQUEST Error ?

  1. How To Solve SSL: WRONG_VERSION_NUMBER ON PYTHON REQUEST Error ?

    To Solve SSL: WRONG_VERSION_NUMBER ON PYTHON REQUEST Error Try this answer.
    In short you should downgrade urllib:
    pip3 install urllib3==1.23

Solution 1

I had the same problem. It’s a bug in urllib3. You have to specify your proxy in the request, and change the ‘https’ value to ‘http’.

My example:

proxies = {'https': 'http://127.0.0.1:8888'}
request = r.get('https://www.example.net', verify=False, proxies=proxies)

Solution 2

Try this answer.

In short you should downgrade urllib:

pip3 install urllib3==1.23

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment