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

Catch runtime error thrown when parsing a body that has no json #57

Open
anieuwland opened this issue Nov 23, 2023 · 0 comments
Open

Catch runtime error thrown when parsing a body that has no json #57

anieuwland opened this issue Nov 23, 2023 · 0 comments

Comments

@anieuwland
Copy link

When submitting a multipart form data POST request, we ran into a runtime exception in fastapi.py::opa_decision when it tries to parse the request body as JSON. This fails. Catch the thrown runtime exception to be able to continue.

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