question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ConnectionError: HTTPConnectionPool: Max retries exceeded

See original GitHub issue
ConnectionError: HTTPConnectionPool(host='x86_64-conda_cos6-linux-gnu', port=8050): Max retries exceeded with url: /_alive_a3a79a8c-7956-4602-96cc-f8f88ec33619 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4dd6f53a58>: Failed to establish a new connection: [Errno -2] Name or service not known'))

I’m trying to run the demo code as shown here

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
elzeraccommented, Sep 30, 2020

If you don’t have sudo priviledges and are running remotely, I was able to just specify host name: app.run_server(mode="inline", host = "localhost")

2reactions
msbuckascommented, Jun 7, 2020

I was getting this primary error with the demo code that the OP referenced!

ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

and the secondary error

_ConnectionError: HTTPConnectionPool(host=‘127.0.0.1’, port=8050): Max retries exceeded with url: /alive_76071299-760d-44ff-82d5-83aca0100737 (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x000001F28514E348>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’))

I set debug to False in run_server(…) to fix my error:

app.run_server(mode='inline', debug=False)

I appreciate that the OP’s error message is different (yet similiar?) but that may be because of different environment setups? :

  • Windows 10
  • conda install
  • JupyterLab
  • local IP

Anyway, its worth a try - apologies if I got it wrong and hijacked this thread!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Max retries exceeded with URL in requests - Stack Overflow
I tried this but it would not retry while I got requests.exceptions.ConnectionError Read timed out. but I set a timeout for the get...
Read more >
(Python) ConnectionError: Max retries exceeded with url
To solve the requests ConnectionError: Max retries exceeded with url, use a `Retry` object and specify how many connection-related errors to retry on...
Read more >
Fix “Max retries exceeded with URL” error in Python ... - LinuxPip
This article will show you what causes “Max retries exceeded with URL” ... ConnectionError: HTTPConnectionPool(host='localhost', port=8001): ...
Read more >
max-retries-exceeded exceptions are confusing #1198 - GitHub
ConnectionError : HTTPConnectionPool(host='localhost', port=1111): Max retries exceeded with url: / (Caused by <class 'socket.error'>: [Errno 61] Connection ...
Read more >
Fix Requests Max Retries Exceeded With Url in Python
The “Max retries exceeded with url” error thrown sometimes by the requests library in Python falls under two classes of errors: requests.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found