-
Notifications
You must be signed in to change notification settings - Fork 481
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]: Crash on failure to download image file #2857
Comments
I found the original post in Discord since that log isn't showing a crash. The exception was caught correctly in that part of the log but directly after that the crash happened. With the updates I made a few months ago for crash logs the crashes will have log type audiobookshelf-1 | [2024-04-16 23:20:10.467] ERROR: [CoverManager] Download image file failed for "https://m.media-amazon.com/images/I/91AVVZUfl9L.jpg" getaddrinfo EAI_AGAIN m.media-amazon.com (CoverManager.js:129)
audiobookshelf-1 | [2024-04-16 23:20:10.526] INFO: [LibraryItem] Library item "77c10708-3f89-461a-a815-f0ffc5837299" updated
audiobookshelf-1 | [2024-04-16 23:20:10.530] FATAL: [Server] Unhandled rejection: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client, promise: Promise {
audiobookshelf-1 | <rejected> Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
audiobookshelf-1 | at ServerResponse.setHeader (node:_http_outgoing:652:11)
audiobookshelf-1 | at ServerResponse.header (/node_modules/express/lib/response.js:794:10)
audiobookshelf-1 | at ServerResponse.send (/node_modules/express/lib/response.js:174:12)
audiobookshelf-1 | at ServerResponse.json (/node_modules/express/lib/response.js:278:15)
audiobookshelf-1 | at ApiRouter.updateMedia (/server/controllers/LibraryItemController.js:172:9) {
audiobookshelf-1 | code: 'ERR_HTTP_HEADERS_SENT'
audiobookshelf-1 | }
audiobookshelf-1 | } (Server.js:164) I tracked this one down to #2573 where the response was sent as a 400 in |
Fixed in v2.9.0 |
Describe the issue
When failing to download an image file during a single match operation, the server crashes. Originally posted by
hjk321
in Discord. Not sure exactly what causes the failure.Steps to reproduce the issue
Truncated error message
Audiobookshelf version
2.8.1
How are you running audiobookshelf?
Docker
The text was updated successfully, but these errors were encountered: