ConnectionError: HTTPConnectionPool: Max retries exceeded
See original GitHub issueConnectionError: 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:
- Created 3 years ago
- Reactions:2
- Comments:11 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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")
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:
I appreciate that the OP’s error message is different (yet similiar?) but that may be because of different environment setups? :
Anyway, its worth a try - apologies if I got it wrong and hijacked this thread!