You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
advplyr
changed the title
[Bug]: Audiobookshelf crashes when searching for a cover without an author
[Bug]: Crash when searching for a cover without an author
Oct 2, 2023
Describe the issue
Audiobookshelf crashes when trying to locate book cover without an author.
Here is the debug output:
[2023-10-02 15:51:56] DEBUG: [Audible] Search url: https://api.audible.com/1.0/catalog/products?num_results=10&products_sort_by=Relevance&title=Bimbos+of+the+Death+Sun (Audible.js:105) /server/finders/BookFinder.js:237 author = author.trim().toLowerCase() ^ TypeError: Cannot read properties of null (reading 'trim') at BookFinder.search (/server/finders/BookFinder.js:237:23) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async BookFinder.findCovers (/server/finders/BookFinder.js:339:23) at async ApiRouter.findCovers (/server/controllers/SearchController.js:29:20)
Steps to reproduce the issue
Audiobookshelf version
v2.4.4
How are you running audiobookshelf?
Docker
The text was updated successfully, but these errors were encountered: