Standardize Error Codes Across Supabase Ecosystem #35505
Unanswered
srothgan
asked this question in
Feature Requests
Replies: 1 comment
|
Hi @srothgan, Thanks for opening this one. I'm going to move this over to discussions/enhancements as a feature request. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Chore
Describe the chore
While implementing error handling with supabase-js, I discovered three inconsistency issues with error codes:
snake_case(e.g.,unexpected_failure), while Storage and Realtime usePascalCase(e.g.,UnknownError). This inconsistency complicates error handling implementation.TenantNotFound) but with different error messages and meanings, making it impossible to uniquely identify errors by code alone.Proposed Solution
I propose standardizing error codes across all Supabase services:
snake_case)storage_tenant_not_foundvsrealtime_tenant_not_found)Benefits
Additional context
While not critical for functionality, these improvements would significantly enhance the developer experience and allow for more robust error handling patterns. I'm willing to contribute PRs to implement these changes if the proposal is accepted.
All reactions