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

Handle database errors gracefully #71

Closed
vityaman opened this issue Apr 20, 2024 · 0 comments · Fixed by #83
Closed

Handle database errors gracefully #71

vityaman opened this issue Apr 20, 2024 · 0 comments · Fixed by #83
Labels
bug Something isn't working

Comments

@vityaman
Copy link
Member

vityaman commented Apr 20, 2024

Like

  • unique constraint violation
  • foreign key violation

Transform it into domain error and return bad request, not 500

Fuzzer from #78 can help

@vityaman vityaman added the bug Something isn't working label Apr 20, 2024
@vityaman vityaman changed the title Handle unque constraint violation Handle database errors gracefully Apr 24, 2024
@vityaman vityaman linked a pull request Apr 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant