Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it #2635
Replies: 4 comments
-
I face the same urllib3 error on Ubuntu 24 on GCP, docker and v47.03 This is a plaintext monitor:
|
Beta Was this translation helpful? Give feedback.
-
Is this a new install? I ran into this problem as it was the first time I tried installing it on a windows machine. The chromedriver I installed does not have a default port and will pick a random one. It shows you in the output after running chromedriver.exe. In my case it might pick 50487. Thus I had to change my variable to this. set WEBDRIVER_URL=http://localhost:50487 Unfortunately, after a reboot or even after stopping chromedriver.exe and restarting, it may pick another port. I am looking at a way to grab the output of the chromedriver.exe command and pass that on to the set command so I can batch start this thing. |
Beta Was this translation helpful? Give feedback.
-
This was not a new install, but I do continue to update my chromedriver version as my browser version auto-updates. @mitchellm3 using your comment regarding the "The chromedriver I installed does not have a default port and will pick a random one" I forced the chromedriver to use a specific port (--port=9515) when launching and was able to clear this error. Below is my updated batch script.
This was successful when using Chrome/Chrome Driver version 131.x |
Beta Was this translation helpful? Give feedback.
-
Doesn't fix the issue but it's just as easy to do a simple GET request as a fetch method than using Chrome. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Receiving the error below
HTTPConnectionPool(host='localhost', port=9515): Max retries exceeded with url: /session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002488E324A10>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
Version
v0.46.04
To Reproduce
HTTPConnectionPool(host='localhost', port=9515): Max retries exceeded with url: /session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002488E324A10>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
https://changedetection.io/share/aAitbKJ-9Csa
Expected behavior
Target is the 30-year fixed interest rate in this specific case from https://www.mortgagenewsdaily.com/mortgage-rates. But this error also applies to my other watches.
Screenshots
Desktop (please complete the following information):
Additional context
If I recall correctly, everything was functional at Chrome/Chrome Driver version 126.x.
Running this outside of my batch script and directly from the command prompt via changedetection.py yields the same results.
Beta Was this translation helpful? Give feedback.
All reactions