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

debug-exceptions = on in instance part in buildout causes requests that return BadRequest to be returned as html instead of json #1734

Closed
wesleybl opened this issue Nov 8, 2023 · 0 comments · Fixed by #1747

Comments

@wesleybl
Copy link
Member

wesleybl commented Nov 8, 2023

The configuration in question is this:

debug-exceptions = on

It took me a considerable amount of time to figure out what was going on. I was using the plone.restapi buildout to test validation errors with Volto. Validation errors return BadRequest. So the validation messages were strange in my tests.

I removed this setting and the tests worked. This configuration was added by @tisto in the commit: 8832625

It seems like it is a necessary configuration in performance tests. We have a buildout for performance testing. So I ask if we can leave this configuration there only.

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 a pull request may close this issue.

1 participant