Skip to content

fix(storage): throw a SupabaseStorageException for a non-JSON 2xx body - #495

Merged
Tr00d merged 1 commit into
supabase:masterfrom
fresh55:fix/storage-non-json-body
Oct 8, 2026
Merged

Tr00d merged 1 commit into
supabase:masterfrom
fresh55:fix/storage-non-json-body

Conversation

@fresh55

@fresh55 fresh55 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

a 2xx body that isn't JSON, like a proxy's html error page, now throws a SupabaseStorageException instead of a JsonException, same as storage-js. the message is the parse error, not the body, since storage responses can carry signed urls. json that doesn't fit the model throws it too. storage side of #260.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants