You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2024. It is now read-only.
FastApi-RESTful appears to commit-after-yield in a FastAPI dependency, which most likely creates risk of data loss since when a commit raises an exception a positive HTTP response has already been returned to the user.
To Reproduce
Steps to reproduce the behavior:
Raise an exception after the yield.
Observe the HTTP response is not affected
Expected behavior
When a database transaction cannot be committed, a positive HTTP response should never be sent.