Skip to content
Advertisement

Why requests raise this exception “check_hostname requires server_hostname”?

JavaScript

And then it raise the exception:

JavaScript

Please help me solve the problem and the best way is to show me the right code. I am very confused and frustrated for the problem!!

Advertisement

Answer

As I understand, in new urllib3 the main schema of proxy was changed… can read here. This settings help for me (for urllib3=1.26.4).

An old

JavaScript

The new

JavaScript

UPDATED

I have met this issue again for requests 2.26.0, but in this time it works with an old schema…

JavaScript

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement