Skip to content

Time out if IP Geolocation not reachable #260

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sonertari
Copy link

@sonertari sonertari commented May 29, 2025

Otherwise, the request waits indefinitely, hence the Software Sources window gets frozen. See the documentation for request timeouts.

Currently, https://api.ip2location.io is not reachable where I am (it's been a few hours already). I am not sure if this is temporary, or if it's due to my network, but whatever the reason is, the Software Sources window should not get frozen.

I am not sure if this pr should be against the master branch, but it is the only active branch.

Otherwise, the request waits indefinitely, hence the Software Sources window gets frozen.
@sonertari
Copy link
Author

sonertari commented May 30, 2025

Btw, the message field of the response from https://api.ip2location.io reads (I finally get responses on the web browser sometimes, but still not in the python script):

Limit to 1,000 queries per day. Sign up for a Free plan at https://www.ip2location.io to get 30K queries per month.

I hope we are not affected by this, but I am just a user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant