Skip to content
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

Change the URL used to check for web connectivity #131

Open
gaurav opened this issue Nov 17, 2023 · 0 comments
Open

Change the URL used to check for web connectivity #131

gaurav opened this issue Nov 17, 2023 · 0 comments

Comments

@gaurav
Copy link

gaurav commented Nov 17, 2023

  • apybiomart version: 0.5.3
  • Python version: 3.11.2
  • Operating System: macOS Sonoma 14.1.1 on Intel

Description

apybiomart currently uses httpstat.us to check whether the computer is connected to the Internet:

url = "https://httpstat.us/200"

Unfortunately, httpstat.us has been offline somewhat frequently lately: aaronpowell/httpstatus#135

This a problem for my code, which runs apybiomart in a loop to download multiple datasets. If any of those connections fail because httpstat.us is down, my program cannot distinguish between an apybiomart incorrectly thinking it is offline and some other error that would require debugging.

I would suggest changing that to example.org (http://example.org/, see description at https://en.wikipedia.org/wiki/Example.com), which should be online more reliably.

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

No branches or pull requests

1 participant