-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post request results in "The server at 127.0.0.1 is taking too long to respond." #60
Comments
It is right. The first When using the latter, it initially does a request to localhost to figure out the "standard headers" sent by the used webdriver (e.g. I still put it down to a firewall issue or something else system-specific that's impossible for me to debug from where I'm sitting. |
Looks like you're right. I've just set up separate Conda environments on two macOS Sonoma machines and installed python 3.11 and selenium-requests. The code above does not work on the machine I was using for the original post but it does on the second machine. Have no idea what it could be but will post back here if I figure it out... |
Ok diagnosed the issue - it's my VPN (NordVPN). As soon as I turn it off then the code above works. This is a bit of an issue because I need it on but something for me to take an investigate further. I'll post back if I find a solution unless @cryzed you have any idea on the direction I could take? |
Yes, I have a suspicion: I think it's possible that NordVPN comes with something like a firewall configuration/"leak protection"/routing that over-eagerly blocks outgoing traffic to the interface we bind to (or tries to route it through the You could try adjusting the code here to If that doesn't fix it, I was able to find a few results regarding this issue: here, here and here, which at least seem related. Can you ping |
Thanks a million. I'm out tomorrow but will get to this first thing on Monday morning! |
I'm trying to call the API of a website using the following code:
In the browser window it seems to be trying to load
http://127.0.0.1:56330/
which doesn't seem right.There is a similar issue here however @cryzed puts this down to a firewall issue. That's not the case here as the first
get
request works just fine.Any ideas what might be going awry?
Supporting details:
MacOS Sonoma
python: 3.11
selenium-requests: 2.0.3
selenium: 4.17.12
requests: 2.31.0
The text was updated successfully, but these errors were encountered: