You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/postgrest-js/src/PostgrestClient.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,9 @@ export default class PostgrestClient<
55
55
* @param options.timeout - Optional timeout in milliseconds for all requests. When set, requests will automatically abort after this duration to prevent indefinite hangs.
56
56
* @param options.urlLengthLimit - Maximum URL length in characters before warnings/errors are triggered. Defaults to 8000.
57
57
* @param options.retry - Enable or disable automatic retries for transient errors.
58
-
* When enabled, GET/HEAD requests that fail with 520 errors (Cloudflare timeouts)
59
-
* will be automatically retried up to 3 times with exponential backoff.
60
-
* Defaults to `true`.
58
+
* When enabled, idempotent requests (GET, HEAD, OPTIONS) that fail with network
59
+
* errors or HTTP 503/520 responses will be automatically retried up to 3 times
60
+
* with exponential backoff (1s, 2s, 4s). Defaults to `true`.
61
61
* @example
62
62
* ```ts
63
63
* import { PostgrestClient } from '@supabase/postgrest-js'
0 commit comments