-
Notifications
You must be signed in to change notification settings - Fork 20
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
AccessPolicy checks hide useful errors #275
Comments
What I wanted to do to fix this was to check in the Then, looking a bit more at the dependency doc (https://fastapi.tiangolo.com/tutorial/dependencies/dependencies-with-yield/#a-database-dependency-with-yield) it states
The problem is that The other option I see is to disable the crash altogether, except when running in the CI, but that isn't so nice, as the idea was that the |
Conclusion after discussion: |
If you are calling a method with wrong arguments, you are supposed to see an error 402 with what is wrong.
Instead, you get nothing because the server crashes with the infamous
"THIS SHOULD NOT HAPPEN, ALWAYS VERIFY PERMISSION",
The text was updated successfully, but these errors were encountered: