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
Auto-generated parity issue — may be a false positive.
This issue was created automatically by /sync-sdk-parity from a heuristic
analysis of recent supabase-js commits. The tooling has limited insight
into language-specific idioms and may have:
misidentified a JS-only change as cross-language relevant,
missed an existing implementation in this SDK under a different name,
or proposed an API shape that doesn't fit this language's conventions.
It is the SDK author's responsibility to validate the need before
implementing. If this change does not apply to this SDK, please close the
issue with a short note explaining why.
SDK Parity: Swift implementation needed
A change was made in supabase-js that needs to be implemented in this repository for SDK parity.
When gotrue-js gets a 5xx response whose body isn't valid JSON, it now falls back to the actual HTTP status text/reason phrase instead of a generic/unhelpful message. This matters especially over HTTP/2, where the reason phrase can legitimately be empty, so there's also a final fallback to a synthesized HTTP <status> string.
Code Reference
if(NETWORK_ERROR_CODES.includes(error.status)){// statusText can be empty — HTTP/2 has no reason phrasethrownewAuthRetryableFetchError(error.statusText||`HTTP ${error.status}`,error.status)}
Implementation Guidance
Expected API Surface
supabase-swift's Sources/Auth/Internal/APIClient.swifthandleError returns a hardcoded message: "Unexpected error" when the body isn't decodable as _RawAPIErrorResponse per prior investigation — it doesn't preserve the actual HTTP status text/reason phrase. Fall back to the response's status description when the body can't be decoded, and only use a generic message as a last resort.
Key Behaviors to Match
Non-JSON 5xx body with a status line still yields a descriptive message · Empty status line (HTTP/2) falls back to a synthesized message like HTTP 503 · Existing JSON-body error parsing is unaffected
Warning
Auto-generated parity issue — may be a false positive.
This issue was created automatically by
/sync-sdk-parityfrom a heuristicanalysis of recent
supabase-jscommits. The tooling has limited insightinto language-specific idioms and may have:
It is the SDK author's responsibility to validate the need before
implementing. If this change does not apply to this SDK, please close the
issue with a short note explaining why.
SDK Parity: Swift implementation needed
A change was made in
supabase-jsthat needs to be implemented in this repository for SDK parity.Reference Implementation (supabase-js)
a6bcd6aeWhat Changed
When gotrue-js gets a 5xx response whose body isn't valid JSON, it now falls back to the actual HTTP status text/reason phrase instead of a generic/unhelpful message. This matters especially over HTTP/2, where the reason phrase can legitimately be empty, so there's also a final fallback to a synthesized
HTTP <status>string.Code Reference
Implementation Guidance
Expected API Surface
supabase-swift'sSources/Auth/Internal/APIClient.swifthandleErrorreturns a hardcodedmessage: "Unexpected error"when the body isn't decodable as_RawAPIErrorResponseper prior investigation — it doesn't preserve the actual HTTP status text/reason phrase. Fall back to the response's status description when the body can't be decoded, and only use a generic message as a last resort.Key Behaviors to Match
Non-JSON 5xx body with a status line still yields a descriptive message · Empty status line (HTTP/2) falls back to a synthesized message like
HTTP 503· Existing JSON-body error parsing is unaffectedAcceptance Criteria
Context
Generated with Claude Code
/sync-sdk-parity