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

ValidationException returns stack trace instead of a list of violations #2665

Open
mtret opened this issue Mar 15, 2024 · 0 comments
Open

ValidationException returns stack trace instead of a list of violations #2665

mtret opened this issue Mar 15, 2024 · 0 comments

Comments

@mtret
Copy link

mtret commented Mar 15, 2024

API Platform version(s) affected: v3.2.16

Description
Hi, anyone knows why this is happening in 3.2.16? Basically throwing ValidationException used to return nicely formatted violations list, now it returns html and stack trace for some reason. Thought maybe setting rfc_7807_compliant_errors: false
could fix it, but it seems to have no effect. Is it supposed to behave like this? If so, any possible workarounds?

image

How to reproduce
Throw a ValidationException in a custom controller.

Possible Solution
No idea.

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

No branches or pull requests

1 participant