-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Export Library fails due to httpx timeout #13
Comments
Your problem should be only happens, when exporting your library. There I forgot to add (or remove) a timeout. He takes the default from audible.Client.init() which is 10 seconds. I have to choice if I add a higher timer to export library command only or to completely rebuild the package. What’s the best in your opinion? |
Rebuilding doesn't sound like fun! So I guess the first option? I'd have written more than a workaround if I had a good clean solution :( |
I‘ve implement a timeout for library export command. Sorry for the delay. You can set a single request timeout for |
#1a620c3 is a good start but causes the timeout to be passed in as a parameter of the request, not as a parameter to httpx. No worries, here's a fix for it. I've tested the following change to models.py and it works:
|
If you use an instance of The |
I‘ve implement your changes in my code. Sorry for the delay. Had to hard work on my kindle repo. |
The speed at which you are responding to issues and comments is to be commended. It's much more typical for things to take months (and occasionally years) to be resolved. You do not need to apologize. |
Fixed in #558eb3b |
library export fails with large libraries or slow transfers due to use of default httpx request timeout (5 seconds).
A fix is required in the underlying library audible-cli uses and possibly a change to audible-cli as well.See mkb79/Audible#36 for details
The text was updated successfully, but these errors were encountered: