-
Notifications
You must be signed in to change notification settings - Fork 500
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
[Bug]: API query failure after upload can trigger a 500 #3741
Comments
This error is due to Audnexus returning a 500 when it has an internal server error. This is not an issue with ABS, but ABS could handle the 500 error better or make it more clear what is going on. We do still want to report the full response (which is what was posted originally) so we can narrow down other errors, but maybe adding a check of whether the message matches a specific pattern like "item not available" or other patterns that we find to display a better log to the user. I was able to reproduce this behavior when uploading a book using edge b4e8f16. Both the original post and this reproduction of the issue took place after server v2.17.5 was released. This behavior only seems to happen when "Auto-Fetch Metadata" option is selected and the provider is Audible. I was unable to reproduce the error when not Auto-Fetching metadata or when using other providers. I have added the debug output "I, Robot" by Isaac Asimov when fetching against Audible, where the folder name is
The process logs only show HTTP 500 errors from Audnexus for the following ASIN:
I received two different types of error 500 from Audnexus, but both are due to not being able to get data for the specific ASIN:
and
|
I did open laxamentumtech/audnexus#812 to see if this is an issue with the Audnexus API documentation or something we would need to account for. The documentation reads like this should return a 404 instead of a 500. |
What happened?
I was uploading my file and got a 500. I looked at the logs and found that it's because Audiobookshelf made a query to https://api.audnex.us/books/B0DK3LD9CF?region=in', and the query triggered an error:
audiobookshelf-1 | message: "Item not available in region 'in' for ASIN: B0DK3LD9CF"
What did you expect to happen?
Upload succeeds, warning gets displayed?
Steps to reproduce the issue
Audiobookshelf version
e6ce9dfffe56
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
Firefox
Logs
Additional Notes
No response
The text was updated successfully, but these errors were encountered: