[Bug]: Crash when accessing playlists #2497

Closed
opened 2026-04-25 00:07:46 +02:00 by adam · 2 comments
Owner

Originally created by @ThierryBegin on GitHub (Jan 17, 2025).

What happened?

Crash when opening playlist

What did you expect to happen?

not crash and show playlists

Steps to reproduce the issue

  1. open playlist

Audiobookshelf version

2.17.7 - docker

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

[2025-01-17 10:04:41.018] FATAL: [Server] Unhandled rejection: TypeError: Cannot read properties of null (reading 'podcast')

    at /server/models/Playlist.js:320:41

    at Array.map (<anonymous>)

    at Playlist.toOldJSONExpanded (/server/models/Playlist.js:309:42)

    at /server/models/Playlist.js:86:57

    at Array.map (<anonymous>)

    at playlist.getOldPlaylistsForUserAndLibrary (/server/models/Playlist.js:86:30)

    at async ApiRouter.getUserPlaylistsForLibrary (/server/controllers/LibraryController.js:818:28) 

promise: Promise {

  <rejected> TypeError: Cannot read properties of null (reading 'podcast')

      at /server/models/Playlist.js:320:41

      at Array.map (<anonymous>)

      at Playlist.toOldJSONExpanded (/server/models/Playlist.js:309:42)

      at /server/models/Playlist.js:86:57

      at Array.map (<anonymous>)

      at playlist.getOldPlaylistsForUserAndLibrary (/server/models/Playlist.js:86:30)

      at async ApiRouter.getUserPlaylistsForLibrary (/server/controllers/LibraryController.js:818:28)

}

Additional Notes

it seem to crash the server when accessing playlist through android app too. so it's not only happening with browser

Originally created by @ThierryBegin on GitHub (Jan 17, 2025). ### What happened? Crash when opening playlist ### What did you expect to happen? not crash and show playlists ### Steps to reproduce the issue 1. open playlist ### Audiobookshelf version 2.17.7 - docker ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Windows ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell [2025-01-17 10:04:41.018] FATAL: [Server] Unhandled rejection: TypeError: Cannot read properties of null (reading 'podcast') at /server/models/Playlist.js:320:41 at Array.map (<anonymous>) at Playlist.toOldJSONExpanded (/server/models/Playlist.js:309:42) at /server/models/Playlist.js:86:57 at Array.map (<anonymous>) at playlist.getOldPlaylistsForUserAndLibrary (/server/models/Playlist.js:86:30) at async ApiRouter.getUserPlaylistsForLibrary (/server/controllers/LibraryController.js:818:28) promise: Promise { <rejected> TypeError: Cannot read properties of null (reading 'podcast') at /server/models/Playlist.js:320:41 at Array.map (<anonymous>) at Playlist.toOldJSONExpanded (/server/models/Playlist.js:309:42) at /server/models/Playlist.js:86:57 at Array.map (<anonymous>) at playlist.getOldPlaylistsForUserAndLibrary (/server/models/Playlist.js:86:30) at async ApiRouter.getUserPlaylistsForLibrary (/server/controllers/LibraryController.js:818:28) } ``` ### Additional Notes it seem to crash the server when accessing playlist through android app too. so it's not only happening with browser
adam added the bug label 2026-04-25 00:07:46 +02:00
adam closed this issue 2026-04-25 00:07:46 +02:00
Author
Owner

@ThierryBegin commented on GitHub (Jan 17, 2025):

Figured out that its a crash that happen in recent versions, initially there was an error. the problem seem that if the playlist contain medias that got deleted (auto download / and remove) it crashes.

fixed it temporarily by reverting back to 2.17.0 and deleted the playlist

@ThierryBegin commented on GitHub (Jan 17, 2025): Figured out that its a crash that happen in recent versions, initially there was an error. the problem seem that if the playlist contain medias that got deleted (auto download / and remove) it crashes. fixed it temporarily by reverting back to 2.17.0 and deleted the playlist
Author
Owner

@nichwall commented on GitHub (Jan 17, 2025):

This is fixed for the next release https://github.com/advplyr/audiobookshelf/issues/3784

@nichwall commented on GitHub (Jan 17, 2025): This is fixed for the next release https://github.com/advplyr/audiobookshelf/issues/3784
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2497