FeatureFuel
1

Standardize Error Codes Across Supabase Ecosystem

Source: supabase/supabase#35505 · opened by @srothgan
Chore Describe the chore While implementing error handling with supabase-js, I discovered three inconsistency issues with error codes: 1. Missing Database Error Codes: Database operations lack defined error codes, making it difficult to implement consistent error handling across all Supabase services. 2. Inconsistent Naming Conventions: Auth error codes use snake_case (e.g., unexpected_failure), while Storage and Realtime use PascalCase (e.g., UnknownError). This inconsistency complicates error handling implementation. 3. Duplicate Error Codes: Both Storage and Realtime services use identical error codes (e.g., 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: • Adopt a consistent naming convention (all snake_case) • Add namespace prefixes to avoid duplicates (e.g., storage_tenant_not_found vs realtime_tenant…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests