fix(api-client): increase default timeout 5s → 15s
Render Starter tier has occasional >5s latency on first authenticated requests after DB idle period. 15s absorbs cold-path latency without masking real failures. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4005673ae8
commit
944d2803a2
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ import { getAccessToken } from './auth-client'
|
||||||
import { logger } from './logger'
|
import { logger } from './logger'
|
||||||
|
|
||||||
const API_VERSION = '1.0'
|
const API_VERSION = '1.0'
|
||||||
const DEFAULT_TIMEOUT_MS = 5000
|
const DEFAULT_TIMEOUT_MS = 15000
|
||||||
const DEFAULT_RETRY = { max: 2, baseDelayMs: 250 }
|
const DEFAULT_RETRY = { max: 2, baseDelayMs: 250 }
|
||||||
const IDEMPOTENT_METHODS = new Set(['GET', 'HEAD', 'PUT', 'DELETE'])
|
const IDEMPOTENT_METHODS = new Set(['GET', 'HEAD', 'PUT', 'DELETE'])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue