-
Notifications
You must be signed in to change notification settings - Fork 384
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
Add well-defined error codes #842
Comments
After further development, I've discovered that some errors do include error codes ( |
This is a known issue and one we're very aware of. It is likely to be one of our biggest priorities in the next year. We'll keep you updated on this issue. |
Any news on this topic? I'm building a Rust app and it's extremely confusing what the API error messages come in different shapes. |
Working on it, main PR here: #1377 |
It appears @hf PR was merged, shouldn't this issue be closed then? |
yes you can close
Em seg., 15 de abr. de 2024 às 07:58, Fatuma Abdullahi <
***@***.***> escreveu:
… It appears @hf <https://github.com/hf> PR was merged, shouldn't this
issue be closed then?
—
Reply to this email directly, view it on GitHub
<#842 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQH3JUIDWJLDYH3OL3NCG6LY5OXG5AVCNFSM6AAAAAASRFKETGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJWGU2TAMBVGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Feature request
Is your feature request related to a problem? Please describe.
Currently it appears that errors from GoTrue only contain a single property,
msg
, which describes the error. While I could show this message to my users, it would not be localized, and may not match the tone of my app.Describe the solution you'd like
I would like it if there were well-documented specific error codes (beyond the HTTP error codes) like
PASSWORD_TOO_SHORT
orEMAIL_EXISTS
included in error payloads so that I could create my own error messages to present to the user on the application side.Describe alternatives you've considered
I could match against the existing
msg
strings, but that seems error-prone and likely to be broken when the language in those strings is updated.The text was updated successfully, but these errors were encountered: