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
I think the error body that the user gets does not clearly disambiguate if they come from the PostgreSQL database or from PostgREST itself. One way to know the difference is that the code key and its value are not present for PostgREST errors.
Proposals
A source string could be prepended to the PostgREST error message, while leaving the PostgreSQL errors untouched:
{
"message": "PostgREST: Could not find...",
"hint": "...."
}
Take the unused code key value pairs and specify that it's a PostgREST error there, leaving the rest untouched:
{
"code": "PostgREST",
"message": "Could not find...",
"hint": "..."
}
Maybe use unique codes like PostgREST101 or PGRST101 to identify each error.
The text was updated successfully, but these errors were encountered:
laurenceisla
added
the
idea
Needs of discussion to become an enhancement, not ready for implementation
label
Aug 17, 2021
Issue
I think the error body that the user gets does not clearly disambiguate if they come from the PostgreSQL database or from PostgREST itself. One way to know the difference is that the
code
key and its value are not present for PostgREST errors.Proposals
code
key value pairs and specify that it's a PostgREST error there, leaving the rest untouched:Maybe use unique codes like
PostgREST101
orPGRST101
to identify each error.The text was updated successfully, but these errors were encountered: