Closed rloomans closed 2 years ago
As of about 5 minutes ago, it seems to be ok again
There was an issue with the server that should be resolved now. I am keeping an eye on it for a while to make sure it won't happen again.
Thanks for the report!
There are a bunch that are now giving me a 500 error instead.
eg
% curl -v https://api.audnex.us/books/B109400077
* Trying 172.67.202.222:443...
* Connected to api.audnex.us (172.67.202.222) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
* start date: Aug 9 00:00:00 2022 GMT
* expire date: Aug 9 23:59:59 2023 GMT
* subjectAltName: host "api.audnex.us" matched cert's "*.audnex.us"
* issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
* SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fb83d80d400)
> GET /books/B109400077 HTTP/2
> Host: api.audnex.us
> user-agent: curl/7.79.1
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 500
< date: Wed, 07 Sep 2022 05:35:37 GMT
< content-type: application/json; charset=utf-8
< content-length: 114
< vary: Origin
< cf-cache-status: BYPASS
< report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=zF1eT34B%2FqZD6RDa8qXk8sM2BST6ONP%2BK5p9izNg4TdzczMHARJwL9IypFGNf%2Bdqp13ZcixVt1CMqPP8RH%2Fhm%2B20p23aT2knMlXExekD1idr%2FBKUQ8WMK9UtcIFJbn80"}],"group":"cf-nel","max_age":604800}
< nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< server: cloudflare
< cf-ray: 746d14f51e158802-SIN
< alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
<
* Connection #0 to host api.audnex.us left intact
{"statusCode":500,"error":"Internal Server Error","message":"Required keys not found in API response: B109400077"}
The problematic ASINs I've seen so far are: B109400077, B172133685, B177230695, B177424023, B177424247, B179990641, B198263383, B198267584
The one with the error does not have data on the api:
{"statusCode":500,"error":"Internal Server Error","message":"Required key 'authors' does not exist in Audible API response for ASIN B109400077"}
are these audible.com asins?
I'm facing the same issue on Neurrone's beet-audible:
!beet import "/content/Animal Farm"
/usr/local/lib/python3.7/dist-packages/beets/mediafile.py:19: UserWarning: beets.mediafile is deprecated; use mediafile instead
warnings.warn("beets.mediafile is deprecated; use mediafile instead")
Error: MusicBrainz not reachable in release search with query {'release': 'animal farm', 'artist': 'george orwell', 'tracks': '1'}
Error while requesting https://api.audnex.us/books/B002V5H6F4/chapters, attempt 1/3: status code 504, Gateway Timeout
Error while requesting https://api.audnex.us/books/B002V5H6F4/chapters, attempt 2/3: status code 504, Gateway Timeout
Error while requesting https://api.audnex.us/books/B002V5H6F4/chapters, attempt 3/3: status code 504, Gateway Timeout
audible: Error while fetching book information from Audnex
Traceback (most recent call last):
File "/content/beets-audible/audible.py", line 291, in get_albums
return [self.get_album_info(p["asin"]) for p in products_without_unreleased_entries]
File "/content/beets-audible/audible.py", line 291, in <listcomp>
return [self.get_album_info(p["asin"]) for p in products_without_unreleased_entries]
File "/content/beets-audible/audible.py", line 300, in get_album_info
(book, chapters) = get_book_info(asin)
File "/content/beets-audible/api.py", line 36, in get_book_info
chapter_response = json.loads(make_request(f"{AUDNEX_ENDPOINT}/books/{asin}/chapters"))
File "/content/beets-audible/api.py", line 61, in make_request
raise e
File "/content/beets-audible/api.py", line 53, in make_request
with request.urlopen(req) as response:
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 504: Gateway Timeout
/content/Animal Farm (1 items)
No matching release found for 1 tracks.
For help, see: https://beets.readthedocs.org/en/latest/faq.html#nomatch
[S]kip, Use as-is, as Tracks, Group albums, Enter search, enter Id, aBort,
eDit?
Please keep an eye on this once the above feature makes it into the main
branch (and thus gets deployed to public instance). Looks like the public server is already behaving better now with some other tweaks I made.
I pulled them from the logs for the Plex Audnexus plugin. I assumed they were valid.
I’ll have another look at the logs.
On Wed, 7 Sep 2022 at 17:11, David Dembeck @.***> wrote:
The one with the error does not have data on the api:
{"statusCode":500,"error":"Internal Server Error","message":"Required key 'authors' does not exist in Audible API response for ASIN B109400077"}
are these audible.com asins?
— Reply to this email directly, view it on GitHub https://github.com/laxamentumtech/audnexus/issues/479#issuecomment-1238997257, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAWPZL4AS7C4DBS6NWXA23V5A5ZFANCNFSM6AAAAAAQGMBXPM . You are receiving this because you authored the thread.Message ID: @.***>
-- Robert Loomans @.***
I'm running in the same 500 problem, but with a perfectly legal audible asin:
DDF - und der Super-Papagei
curl https://api.audnex.us/books/B0B1QKF361 {"statusCode":500,"error":"Internal Server Error","message":"Required key 'authors' does not exist in Audible API response for ASIN B0B1QKF361"}
I'm running in the same 500 problem, but with a perfectly legal audible asin: DDF - und der Super-Papagei
curl https://api.audnex.us/books/B0B1QKF361 {"statusCode":500,"error":"Internal Server Error","message":"Required key 'authors' does not exist in Audible API response for ASIN B0B1QKF361"}
This is an audible.de ASIN which is not implemented
Oh, sorry. Wasn't aware of a difference here.
Some requests to https://api.audnex.us/ are failing with a 504 error...
While others are fine...
As an additional datapoint, I'm currently running a local container with
laxamentumtech/audnexus:develop
and it's retrieving the same ASINs fine.