-
Notifications
You must be signed in to change notification settings - Fork 495
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]: Bad epub causes crash with Unhandled rejection error #2856
Comments
Here are the WARN and ERROR Logs from right before the FATAL: 2024-04-16 12:39:18.685 2024-04-16 12:39:18.847 2024-04-16 12:39:21.037 2024-04-16 12:39:21.308 2024-04-16 12:39:27.173 2024-04-16 12:39:27.174 |
Related to #2750 Edit: Whoops, that issue is actually about CBR/CBZ. Someone mentioned getting this same error with epub but can't find where that was... |
I was about to say, I don't have any CBR or CBZ files ;) |
I did look for an existing issue before I opened this one |
Can you share the 2,000 Mules epub with me in a Discord DM or via email to [email protected] for testing? |
Sent via Discord DM |
This was a bad epub file but we should be catching the errors thrown by node stream zip library. |
Fixed in v2.9.0 |
Describe the issue
Brand new install on Docker, I am probably doing something wrong. Install works, and it starts scanning my library, but it very quickly crashes. Below is the error included in the Crash Log:
[Server] Unhandled rejection: TypeError [ERR_INVALID_ARG_VALUE]: The argument 'buffer' is empty and cannot be written. Received , promise: Promise {
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'buffer' is empty and cannot be written. Received
at Object.read (node:fs:673:11)
at FsRead.read (/server/libs/nodeStreamZip/index.js:979:10)
at FileWindowBuffer.read (/server/libs/nodeStreamZip/index.js:1023:86)
at readEntries (/server/libs/nodeStreamZip/index.js:319:12)
at Object.readCentralDirectoryComplete [as complete] (/server/libs/nodeStreamZip/index.js:252:9)
at FsRead.readUntilFoundCallback [as callback] (/server/libs/nodeStreamZip/index.js:192:14)
at FsRead.readCallback (/server/libs/nodeStreamZip/index.js:996:19)
at FSReqCallback.wrapper [as oncomplete] (node:fs:686:5) {
code: 'ERR_INVALID_ARG_VALUE'
}
}
Steps to reproduce the issue
Audiobookshelf version
v2.8.1
How are you running audiobookshelf?
Docker
The text was updated successfully, but these errors were encountered: