• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 41624559224
98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 11:05AM UTC
Jobs 30
Files 167
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Nov 2026 11:04AM UTC coverage: 95.704% (+0.2%) from 95.518%
41624559224

push

github

web-flow
fix(storage): parse analytics bucket error responses (#1894)

## What
Analytics bucket requests (`storage.analytics()` `create` / `list` /
`delete`) now raise `StorageApiError` with the server's message and
error type, instead of `LibraryError` wrapping the raw response body.

## Why
The analytics (iceberg) endpoints return errors nested under `error`:
`{"error": {"message": "Bucket not found", "type": "NoSuchBucket",
"code": 404}}`. The request builder only understood the flat
vector-bucket error shape, so this fell through to the `LibraryError`
fallback.

## How
- Add `AnalyticsBucketErrorMessage` (`error.message`, `error.type`) in
`exceptions.py`.
- Move error body parsing into `parse_storage_api_error` in
`exceptions.py`, shared by the async and sync request builders. It tries
the vector-bucket shape, then the analytics shape
(`StorageApiError(message=error.message, code=error.type,
status=response.status_code)`), and falls back to `LibraryError`.
- Every `StorageApiError` raised by `send()` now has the
`HTTPStatusError` as its cause. Previously the `LibraryError` fallback
chained to a pydantic `ValidationError`.
- `_sync/request.py` regenerated with `make storage.build-sync`.

## Tests
- Async and sync tests in `tests/test_client.py`, parametrized over
`create`, `list`, `delete`, using `httpx.MockTransport` with the issue's
body.
- Async and sync tests that vector errors (flat body and non-JSON body)
keep their mapping and their `HTTPStatusError` cause.
- `make storage.tests` passes locally (161 passed).

Fixes #1893


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved error reporting for storage requests involving analytics and
vector buckets. Errors now provide more useful details for missing
buckets and other API failures, including when a response cannot be
interpreted. This makes failures more consistent across synchronous and
a... (continued)

12653 of 13221 relevant lines covered (95.7%)

4.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
97.73
1.57% src/storage3/exceptions.py
Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest-3.11-functions - 41624559224.1 03 Nov 2026 11:05AM UTC 18
97.98
GitHub Action Run
2 run-ubuntu-latest-3.12-realtime - 41624559224.2 03 Nov 2026 11:06AM UTC 17
90.7
GitHub Action Run
3 run-ubuntu-latest-3.13-postgrest - 41624559224.3 03 Nov 2026 11:06AM UTC 39
97.72
GitHub Action Run
4 run-ubuntu-latest-3.15-functions - 41624559224.4 03 Nov 2026 11:05AM UTC 18
97.98
GitHub Action Run
5 run-ubuntu-latest-3.11-supabase - 41624559224.5 03 Nov 2026 11:05AM UTC 20
96.85
GitHub Action Run
6 run-ubuntu-latest-3.14-functions - 41624559224.6 03 Nov 2026 11:05AM UTC 18
97.98
GitHub Action Run
7 run-ubuntu-latest-3.12-storage - 41624559224.7 03 Nov 2026 11:06AM UTC 40
95.71
GitHub Action Run
8 run-ubuntu-latest-3.15-supabase - 41624559224.8 03 Nov 2026 11:05AM UTC 20
96.84
GitHub Action Run
9 run-ubuntu-latest-3.15-postgrest - 41624559224.9 03 Nov 2026 11:06AM UTC 39
97.71
GitHub Action Run
10 run-ubuntu-latest-3.15-auth - 41624559224.10 03 Nov 2026 11:06AM UTC 57
93.9
GitHub Action Run
11 run-ubuntu-latest-3.13-storage - 41624559224.11 03 Nov 2026 11:06AM UTC 40
95.71
GitHub Action Run
12 run-ubuntu-latest-3.12-postgrest - 41624559224.12 03 Nov 2026 11:06AM UTC 39
97.72
GitHub Action Run
13 run-ubuntu-latest-3.12-supabase - 41624559224.13 03 Nov 2026 11:05AM UTC 20
96.85
GitHub Action Run
14 run-ubuntu-latest-3.12-functions - 41624559224.14 03 Nov 2026 11:05AM UTC 18
97.98
GitHub Action Run
15 run-ubuntu-latest-3.15-realtime - 41624559224.15 03 Nov 2026 11:06AM UTC 17
90.05
GitHub Action Run
16 run-ubuntu-latest-3.14-storage - 41624559224.16 03 Nov 2026 11:06AM UTC 40
95.69
GitHub Action Run
17 run-ubuntu-latest-3.12-auth - 41624559224.17 03 Nov 2026 11:06AM UTC 57
93.92
GitHub Action Run
18 run-ubuntu-latest-3.11-auth - 41624559224.18 03 Nov 2026 11:06AM UTC 57
93.92
GitHub Action Run
19 run-ubuntu-latest-3.11-storage - 41624559224.19 03 Nov 2026 11:06AM UTC 40
95.71
GitHub Action Run
20 run-ubuntu-latest-3.14-realtime - 41624559224.20 03 Nov 2026 11:06AM UTC 17
90.05
GitHub Action Run
21 run-ubuntu-latest-3.11-realtime - 41624559224.21 03 Nov 2026 11:06AM UTC 17
90.8
GitHub Action Run
22 run-ubuntu-latest-3.14-auth - 41624559224.22 03 Nov 2026 11:06AM UTC 57
93.9
GitHub Action Run
23 run-ubuntu-latest-3.11-postgrest - 41624559224.23 03 Nov 2026 11:06AM UTC 39
97.72
GitHub Action Run
24 run-ubuntu-latest-3.13-functions - 41624559224.24 03 Nov 2026 11:05AM UTC 18
97.98
GitHub Action Run
25 run-ubuntu-latest-3.13-supabase - 41624559224.25 03 Nov 2026 11:05AM UTC 20
96.85
GitHub Action Run
26 run-ubuntu-latest-3.14-supabase - 41624559224.26 03 Nov 2026 11:05AM UTC 20
96.84
GitHub Action Run
27 run-ubuntu-latest-3.13-realtime - 41624559224.27 03 Nov 2026 11:06AM UTC 17
90.7
GitHub Action Run
28 run-ubuntu-latest-3.14-postgrest - 41624559224.28 03 Nov 2026 11:06AM UTC 39
97.71
GitHub Action Run
29 run-ubuntu-latest-3.15-storage - 41624559224.29 03 Nov 2026 11:08AM UTC 40
95.69
GitHub Action Run
30 run-ubuntu-latest-3.13-auth - 41624559224.30 03 Nov 2026 11:06AM UTC 57
93.92
GitHub Action Run
Source Files on build 41624559224
  • Tree
  • List 167
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41624559224
  • c5d01498 on github
  • Prev Build on main (#41623643777)
  • Next Build on main (#41625202713)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc