Skip to content Skip to sidebar Skip to footer

Numerous "connectionrefusederror: [winerror 10061]" In Python Requests

So I know that is a lot of code to look at down below, but I'm absolutely stumped because I've never had such an issue when using python. I was hopeful to use the requests module t

Solution 1:

Im answering my own question because I've done more digging in the documentation of URLLIB3 and Requests for Python 3.5 and found that the root issue was a WIN Error 10061.

URLLIB3 and Requests derive their settings from the default proxy settings of Internet Explorer.

By resetting my internet explorer proxy settings to empty, it resolved all my issues.

For some reason, even though I've never used internet explorer on this machine except to download firefox, some other app I've used must have changed the settings in IE. Probably windows firewall.

Hopefully anyone who comes up in the future will see this question and learn from my errors.

Solution 2:

It's clear that you are having connection issues. Without knowing more, I would guess this is due to a proxy problem. If so here's a stackoverflow answer to setup a proxy with the requests module.

If not, 1) What OS?, 2)Environment variables setup for pip? 3)Corporate Network or Home?

Solution 3:

Indeed, the problem is in the Internet settings. How to fix:

  1. Click on the gear in the upper right corner
  2. Select an item "Internet options"
  3. Go to the tab "Connections"
  4. Click on "LAN settings"
  5. Uncheck the item "Use a proxy server for..."

Open image

Post a Comment for "Numerous "connectionrefusederror: [winerror 10061]" In Python Requests"