What should I do about request timeouts or 5xx errors?
Timeouts and 5xx errors are usually related to upstream services, channel proxies, networks, oversized requests, or platform system load. You can retry a single failure; persistent failures require checking the channel and upstream status.
Initial Checks
- Are all models failing, or only a specific model?
- Are all clients failing, or only clients in a specific network environment?
- Does the channel test pass?
- Is the upstream key valid, funded, and not being rate-limited?
- Is the proxy address available, and is the TLS certificate valid?
- Does the request contain an oversized context, file, or image?
How to Handle It
Use exponential backoff retries for 502, 503, and 504 errors. Administrators should check channel health, upstream provider status, proxies, logs, and system resources. For critical workloads, configure backup channels or backup models.
