Skip to content

using postgres_output value will result in error 500 instead of 404 when not getting rows #55

Description

@rauberdaniel

I tried to combine postgres_output value with postgres_rewrite no_rows =404 to achieve returning the single value that is returned by postgres or a 404 error when nothing is returned. However, this results in a server error 500 because postgres_output value expects exactly 1 value but received 0.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions