Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error returned on GET /clients/{id} when client doesn't exist #903

Closed
koesie10 opened this issue Jun 12, 2018 · 0 comments
Closed

500 error returned on GET /clients/{id} when client doesn't exist #903

koesie10 opened this issue Jun 12, 2018 · 0 comments
Assignees
Labels
bug Something is not working. package/client
Milestone

Comments

@koesie10
Copy link

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

When using SQL and calling GET /clients/nonexistingclient or using cli hydra clients get nonexistingclient, the endpoint return 500, while it should return 404. In memory mode, the behaviour seems to be correct.

SQL:

{
    "error": {
        "code": 500,
        "message": "Unable to find client adfadf"
    }
}

Memory:

{
    "error": {
        "code": 404,
        "message": ": Not found"
    }
}

Which version of the software is affected?

v1.0.0-beta.2

@aeneasr aeneasr added the bug Something is not working. label Jun 13, 2018
@aeneasr aeneasr self-assigned this Jun 13, 2018
@aeneasr aeneasr added this to the 1.0.0 milestone Jun 13, 2018
aeneasr pushed a commit that referenced this issue Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working. package/client
Projects
None yet
Development

No branches or pull requests

2 participants