Skip to content

APIP responds with 500, rather than 404 (potentially) #68

@marioprudhomme

Description

@marioprudhomme

When doing GET /path/{uuid} and you dont pass a uuid, it generates a 500 database error

"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"detail": "An exception occurred while executing 'SELECT a0_.id AS id_0, a0_.uuid AS uuid_1, a0_.data AS data_2, a0_.version AS version_3, a0_.created_at AS created_at_4, a0_.updated_at AS updated_at_5, a0_.plan_id AS plan_id_6 FROM app_tenant a0_ WHERE a0_.uuid = ?' with params ["tenants"]:\n\nSQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for uuid: "tenants"",
"trace": [

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