Skip to content

REST turns every ValueError into a 400 that echoes the exception text #209

Closed

Description

@PromiseFru

The REST app registers a 400 handler for every ValueError and NotImplementedError and puts str(exc) in the response. A server fault that raises ValueError, such as a wrong SQLCipher key, reaches the client as a client error carrying the internal message.

Only InvalidCursorError needs that handler, and no REST route raises NotImplementedError.

We could register the 400 handler for InvalidCursorError alone and drop the NotImplementedError one, so other errors go to the generic 500 handler.

Activity

  1. added a commit that references this issue on Nov 20, 2026
    e74ea60
  2. github-actions commented on Nov 20, 2026

    @github-actions

    Merged to staging in #254, and it will ship in the next release.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions