Skip to content

Fix - Internal Server Error 500 for ValidationError#3027

Merged
mkultraWasHere merged 1 commit into
apache:masterfrom
sasirven:fix/validation-error
Jul 29, 2024
Merged

Fix - Internal Server Error 500 for ValidationError#3027
mkultraWasHere merged 1 commit into
apache:masterfrom
sasirven:fix/validation-error

Conversation

@sasirven
Copy link
Copy Markdown
Contributor

This is a fix to prevent an Internal Server Error 500 when using PATCH or PUT on the API and a schema raises a ValidationError.

  • Change the middleware in responses.py for ValidationError to raise an HTTPUnprocessableEntity instead of a JsonHttpBadRequest.

- Change the middleware in responses.py for ValidationError
to raise an HTTPUnprocessableEntity instead of a JsonHttpBadRequest
@mkultraWasHere
Copy link
Copy Markdown
Contributor

TY @sasirven

@mkultraWasHere mkultraWasHere merged commit fc432b6 into apache:master Jul 29, 2024
@sasirven sasirven deleted the fix/validation-error branch October 15, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants