Skip to content

fix(storage): read the Iceberg error envelope of analytics bucket errors - #2202

Merged
spydon merged 2 commits into
mainfrom
lukasklingsbo/sdk-3177-drift-storageanalytics-iceberg-error
Nov 30, 2026
Merged

spydon merged 2 commits into
mainfrom
lukasklingsbo/sdk-3177-drift-storageanalytics-iceberg-error

Conversation

@spydon

@spydon spydon commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Analytics bucket requests failed with the raw body as message and a stringified map as error code, because the /iceberg/* routes answer with {"error": {"message", "type", "code"}}.

  • StorageApiException.fromJson unwraps that envelope: message, type as errorCode, code as statusCode.
  • Matches the iceberg package and the Swift and Python SDKs.

SDK-3177

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ccbc494 and dd518fd.

Files selected for processing: 3

  • packages/supabase_storage/lib/src/types.dart
  • packages/supabase_storage/test/basic_test.dart
  • packages/supabase_storage/test/types_test.dart
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the storage This issue or pull request is related to storage label Nov 30, 2026
@spydon
spydon merged commit 3ea9130 into main Nov 30, 2026
55 checks passed
@spydon
spydon deleted the lukasklingsbo/sdk-3177-drift-storageanalytics-iceberg-error branch November 30, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

storage This issue or pull request is related to storage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant