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

[Bug]: Client > Update - Error 500 when we expect 401/404/422 #2

Open
tiagof opened this issue May 16, 2023 · 0 comments
Open

[Bug]: Client > Update - Error 500 when we expect 401/404/422 #2

tiagof opened this issue May 16, 2023 · 0 comments
Labels

Comments

@tiagof
Copy link
Member

tiagof commented May 16, 2023

What happened?

The endpoint refers to different Response codes, but we are getting 500 everytime. (Except for when our query is valid, then we get a 200)

This client exists:

        > InvoiceXpress::client()->update(37444085, ['client' => ['phone' => '123456']]);
        = null

This client does NOT exist. We expected a 404

        > InvoiceXpress::client()->update(27444085, ['client' => ['phone' => '123456']]);

        Illuminate\Http\Client\RequestException HTTP request returned status code 500:
        {"status":500,"error":"Internal Server Error"}.
@tiagof tiagof added the IX label May 16, 2023
@tiagof tiagof changed the title [Bug]: Client > Update - Erro 500 quando o esperado seria 401,404,422 [Bug]: Client > Update - Error 500 when we expect 401/404/422 May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant