Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: always retry on 429 errors (#39934)

Alaister Young6e6391bc1e72
diff --git a/apps/studio/data/query-client.ts b/apps/studio/data/query-client.ts
index bec055c21ee..dde6eeb0e13 100644
--- a/apps/studio/data/query-client.ts
+++ b/apps/studio/data/query-client.ts
@@ -43,7 +43,9 @@ export function getQueryClient() {
if (
error instanceof ResponseError &&
error.requestPathname &&
- SKIP_RETRY_PATHNAME_MATCHERS.some((matchFn) => matchFn(error.requestPathname!))
+ SKIP_RETRY_PATHNAME_MATCHERS.some((matchFn) => matchFn(error.requestPathname!)) &&
+ // Still retry on 429s (rate limit) so that retry after is respected
+ error.code !== 429
) {
return false
}