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

feat: rethrow notfound exception as badRequest on rpc calls #46

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

arnaud-thorel-of
Copy link
Contributor

Whn RPC call fail, you got an error like this :

{"code":"PGRST202","details":"Searched for the function public_repository_depositaire.zoneDcpByCoordonnees_v1 with parameters coordinates, type or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.","hint":null,"message":"Could not find the function public_repository_depositaire.zoneDcpByCoordonnees_v1(coordinates, type) in the schema cache"}

with a 404 status

It allows to raise concrete exception

@arnaud-thorel-of arnaud-thorel-of merged commit ce27b31 into main Oct 8, 2024
1 check passed
@arnaud-thorel-of arnaud-thorel-of deleted the feature/rethrow-404-rpc-calls branch October 8, 2024 12:53
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 this pull request may close these issues.

1 participant