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

supabase / supabase-py / 41645093163 / 11
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 01:35PM UTC
Files 22
Run time 1s
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 01:31PM UTC coverage: 97.921%. Remained the same
41645093163.11

push

github

web-flow
fix(postgrest): retry GET and HEAD requests on network errors (#1777)

Fixes #1776

## What

`send_with_retry` retried 503 and 520 responses, but a request whose
connection was closed before any response (reset, HTTP/2 GOAWAY) raised
on the first attempt. The retry changelog lists network-level failures
as retried for GET and HEAD.

## Fix

`RequestConfig.should_retry_error()` retries `httpx.NetworkError` and
`httpx.RemoteProtocolError`, under the same conditions as
`should_retry()` (GET or HEAD, `retry_enabled`, `MAX_RETRIES`); the
shared checks moved to `_is_retryable()`. Writes are still never
retried, and neither are timeouts.

`get_retry_delay()` no longer takes `resp`: it never used it, and there
is no response to pass after a network error.

The tests (sync and async) use an `httpx.MockTransport` that drops the
connection, and check that a select is retried, that it gives up after
`MAX_RETRIES`, that an insert is not retried, and that `.retry(False)`
turns it off.

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

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

## Summary by CodeRabbit

- **Bug Fixes**
- Improved resilience to transient network and protocol failures by
retrying eligible GET and HEAD requests, up to the configured limit.
- Writes and requests with retries disabled are not retried, and
timeouts continue to fail without retrying.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ange Loisy <193083404+ange-loisy@users.noreply.github.com>
Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

895 of 914 relevant lines covered (97.92%)

0.98 hits per line

Source Files on job run-ubuntu-latest-3.15-supabase - 41645093163.11
  • Tree
  • List 22
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41645093163
  • 1113f408 on github
  • Prev Job for on main (#41644999038.12)
  • Next Job for on main (#41645652422.4)
  • 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