-
Notifications
You must be signed in to change notification settings - Fork 23
Description
I was noticing some books fail with a 500 URL when querying audnex and I tried opening the URL and got the same 500. I tried removing update=1
from the query parameters and noticed the error when away. Perhaps it should be configurable if the parameter is specified? According to https://audnex.us/#tag/Authors/operation/getAuthorById it's intended to cause audnex to check for updated information, but I guess that sometimes doesn't work because audible is rate limiting audnexus, so perhaps it should be optional, or an option could be provided to skip querying with update=1
after the previous attempts fail.
My example:
Error while requesting https://api.audnex.us/books/B08PC8N4NC?region=us&update=1, attempt 1/3: status code 500, Internal Server Error
If I open that URL in the browser or curl it, I get:
{"statusCode":500,"error":"Internal Server Error","message":"An error occurred while updating book B08PC8N4NC in the DB"}
If I try opening the URL without the update=1
(https://api.audnex.us/books/B08PC8N4NC?region=us) I get:
{"asin":"B08PC8N4NC","authors":[{"name":"Carl Jung"}],"description":"In The Undiscovered Self Jung explains the essence of his teaching for an audience unfamiliar with his ideas....","formatType":"unabridged","genres":[{"asin":"18573370011","name":"Health & Wellness","type":"genre"},{"asin":"18573475011","name":"Psychology & Mental Health","type":"tag"},{"asin":"18573491011","name":"Psychology","type":"tag"}],"image":"https://m.media-amazon.com/images/I/81xJq6e-B6L.jpg","isAdult":false,"language":"english","narrators":[{"name":"David Rintoul"}],"publisherName":"Ukemi Audiobooks","rating":"4.8","region":"us","releaseDate":"2020-12-04T00:00:00.000Z","runtimeLengthMin":150,"summary":"<p>In <i>The Undiscovered Self </i>Jung explains the essence of his teaching for an audience unfamiliar with his ideas. He highlights the importance of individual responsibility and freedom in the context of today's mass society and argues that individuals must organise themselves as effectively as the organized mass if they are to resist joining it. </p> <p>To help them achieve this he sets out his influential programme for achieving self-understanding and self-realisation. <i>The Undiscovered Self </i>is a book that will awaken many individuals to the new life of the self that Jung visualised. Carl Gustav Jung (1875-1961) founded the analytical school of psychology and developed a radical new theory of the unconscious.</p>","title":"The Undiscovered Self"}