Open buildbro opened 4 months ago
Describe the bug I ran a few invalid inputs intentionally to help me with documenting the Authentication Flow API error responses.
In the process, I ran into the following issue:
Improper inputs such as poorly formatted JSON (e.g including a trailing comma in JSON) will return a 500 internal error that looks like this:
"error": { "name": "InternalError", "reason": "UnexpectedError", "message": "unexpected error occurred", "code": 500 }
Authgear Version
To Reproduce Steps to reproduce the behavior:
/api/v1/authentication_flows/states/input
{ "state_token": "authflowstate_ZK9ZENACTQDGNM1B2741CREF0ZBRR9WD", "input": { "index": 0, } }
Expected behavior Expect an error message about invalid input
Screenshots
Client Env (if applicable, please complete the following information):
Additional context Add any other context about the problem here.
DEV-1276 Auth Flow API Returns 500 internal error when the request body is invalid/not properly formatted
Describe the bug I ran a few invalid inputs intentionally to help me with documenting the Authentication Flow API error responses.
In the process, I ran into the following issue:
Improper inputs such as poorly formatted JSON (e.g including a trailing comma in JSON) will return a 500 internal error that looks like this:
Authgear Version
To Reproduce Steps to reproduce the behavior:
/api/v1/authentication_flows/states/input
)Expected behavior Expect an error message about invalid input
Screenshots
Client Env (if applicable, please complete the following information):
Additional context Add any other context about the problem here.