Skip to content

Editing a playlist results in Error 500 #957

Closed

Description

@Drakon74

Editing a self created playlist (e.g. changing the name) results that no playlist can't be retrieved anymore. The webui only displays server error 500 and nothing more. The Mobile App displays the same on the playlist page AND the home page. The webui home page works, but displays that no playlist exists (not even the built in ones).

Docker logs of the pinepod and postgres containers are not showing anything when this happens. (Last logs are just from when the containers started)

Only solution i found so far was restoring from backup.

Activity

  1. djotaku commented on Aug 7, 2026

    @djotaku

    Same thing is happening to me. Let me know if there's anywhere I can check in the logs to help

  2. djotaku commented on Aug 10, 2026

    @djotaku

    Hey, I wanted to add a little more context based on my experience with how it's happening on my pod. It is definitely true that any edits to a user made smart playlist will result in a 500 error. It seems that the changes are recorded. And it also seems that the system can tolerate this happening a few times before it does give the symptom that the original reporter stated. That is to say it seems that if I edit just one smart playlist and it gets the 500 error it's fine. But if I keep doing it then eventually all my playlists disappear and I have to revert to a known good backup.

  3. kalmatthew commented on Aug 24, 2026

    @kalmatthew

    I hit this exact bug today and tracked down the root cause via direct DB/log access (Postgres backend). (Investigation and this comment were done by Claude Code on my behalf, not by me directly — flagging that for transparency.)

    Editing a user-created playlist through the UI writes NULL into the Playlists.description column (confirmed: my playlist's last_updated timestamp matched the moment the error started). The backend's get_playlists query decodes that column as String rather than Option<String>, so any playlist with a NULL description makes the entire get_playlists response 500 — which is why home page ("no playlists exist") and the playlist page both break at once, exactly as reported above.

    Server log (Rust backend, Postgres):

    API Error: 500 - Database error: error occurred while decoding column "description": unexpected null; try decoding as an `Option`
    

    Workaround (no data loss, no backup restore needed): set the affected playlist's description back to an empty string instead of NULL, e.g.:

    UPDATE "Playlists" SET description = '' WHERE description IS NULL;

    That immediately restores get_playlists for all users without needing to revert to a backup.

    Suggested real fix: either (a) make the edit-playlist endpoint write '' instead of NULL when no description is given, or (b) make the get_playlists query decode description as Option<String> so a NULL doesn't 500 the whole response.

  4. madeofpendletonwool commented on Oct 29, 2026

    @madeofpendletonwool
    Owner

    Fixed in #1039 - Episodes missing a title or artwork were breaking the playlist preview. Those are handled now and editing works again. Will be released officially with the next release coming soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions