Not live-tested: this guide was checked against documentation on November 19, 2026. No APIrove or model API requests were made. Client versions, enabled models and limits need separate verification.
Identify where the request stopped
| Observation | What it establishes | Next step |
|---|---|---|
| HTTP 502 | An HTTP layer could not finish successfully | Keep a sanitized failure summary; do not assume work never started. |
| HTTP 504 | An HTTP layer exceeded its wait deadline | Check usage and application state before replaying. |
| Local timeout / no HTTP status | The client stopped waiting | Check connectivity and client timeout settings; completion is unknown. |
| HTTP 200 followed by a broken stream | Some output may already have been consumed | Mark the result incomplete; do not append a replay to it. |
A bounded non-streaming diagnostic
For a model confirmed to support Chat Completions, replace YOUR_ENABLED_MODEL_ID and set the key securely in your shell. This example would make a real generation request if you run it. There is no automatic retry; the connection and total deadlines below are illustrative client choices, not APIrove service guarantees.
# APIROVE_API_KEY must already be set securely in your shell.
curl --silent --show-error --connect-timeout 10 --max-time 45 \
https://apirove.com/v1/chat/completions \
-H "Authorization: Bearer ${APIROVE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"model":"YOUR_ENABLED_MODEL_ID","messages":[{"role":"user","content":"Reply OK"}],"stream":false}'Compare this with the same model's streaming request only after the basic request works. The SDK Base URL remains:
https://apirove.com/v1Streaming has more than one timeout
- Connection timeout: time to establish the connection.
- Read or idle timeout: maximum wait between incoming bytes; heartbeats alone do not prove useful progress.
- Total deadline: the whole operation, including waits and retries.
Check the application's network path for buffering or idle disconnects. A TCP chunk is not necessarily one SSE event: buffer through the event separator and parse the selected protocol. Chat Completions uses data: [DONE] as its terminal marker; Responses uses named events such as response.completed, response.failed or response.incomplete. Do not apply one protocol's completion rule to the other. A closed socket or HTTP 200 alone is not completion.
Retry only after checking the result
- If the result is unknown, inspect application state and usage first. A timeout does not prove cancellation, no processing or no charge.
- For a confirmed transient failure before output, and only when replay is safe, use a small bounded retry budget with backoff. Follow Retry-After if present; schedule later if it exceeds your deadline.
- If any text or tool call was consumed, stop automatic replay. Preserve the partial result separately and let the user start a new attempt.
- Tool actions need their own deduplication. Do not assume a generic idempotency header, resumable stream or refund behavior is supported.
Persisting failures: check the status page and contact support privately with time, time zone, endpoint, model and a sanitized summary. For throttling use 429 recovery; authentication belongs in 401 / 403 / 404.
Sources: OpenAI recovery guidance and Responses streaming documentation. APIrove capabilities still require separate verification.
Related guides
Request troubleshooting overview · Endpoint and request formats · Model directory · Key security
FAQ
Does a timeout mean the request was not processed?
No. The client deadline can expire while work continues. Check application state and usage before sending another request.
Can I retry after receiving some streamed output?
Do not automatically replay or append a second result. Keep the partial output separate and request a new attempt explicitly.
Does streaming guarantee a faster final result?
No. Streaming changes delivery; it does not guarantee a shorter total generation time or uninterrupted output.
New to APIrove? Register, check the available top-up options, then create a key. Existing users can follow the checks above.
Get started with APIrove