-
Notifications
You must be signed in to change notification settings - Fork 74
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
Increase timeout on HTTP requests and use a variable #409
Comments
Hi @paddyroddy thanks for reporting this! We've had timeouts on HTTP requests hardcoded from #329 but I think the value we used was too strict (5s). It would be good to change all of these to use a package variable and set it to a larger number (30-60s maybe). I'm updating the title of this issue to match. I won't have the time to do this soon but if anyone else is interested, then please be my guest 🙂 |
load_registry_from_doi
?
Another idea for implementation of this one would be to not make the |
@leouieda can you expand on what you mean by a "package variable"? I'm annoyed with my tests constantly failing, so pretty keen to get this fixed |
I've had a look into the |
I'm still unsure about a "package variable". I've noticed several functions/classes have a For now, I'm going to try the |
Related to fatiando/pooch#409
|
Hi @paddyroddy sorry for the delay. I meant having a global variable in a module somewhere that is used throughout the package. We can set this to something relatively high to help with flaky connections. But being a global also means it can be patched in an emergency. |
I agree that refactoring how we pass the |
Agreed. I think |
@paddyroddy v1.8.2 is now on PyPI and should be on conda-forge by tomorrow at the latest. Hope this helps! |
@leouieda I've only done a few tests runs of my CI but looks like it's done the trick! Thanks 😄 |
@paddyroddy great to know! Feel free to open another issue or reopen this one if it comes back. |
Does seem like I occasionally hit that timeout, damn Zenodo - it didn't use to be a problem |
😢 yeah, they've been a bit slow recently. If it's sample data for a package, I tend to mirror it on GitHub and make CI download from there instead to avoid overloading them. |
Prior to the zenodo upgrade last year I had no issues with downloading my zenodo dataset. It has since been flaky and I sometimes get an
error like this
The relevant code is something like this
Is it possible to increase the timeout of
load_registry_from_doi
?The text was updated successfully, but these errors were encountered: