What errors can happen during a stream?
Before streaming starts (bad key, no credits, rate limit), you get a normal error response with its HTTP status, exactly like a non-streamed request.
After streaming starts, the status is already 200, so an error arrives as an event:
data: {"error": {"message": "...", "code": "stream_error", ...}}
data: [DONE]
Retryable codes there are typically stream_error, model_overloaded, model_unavailable and model_timeout. See How do I detect an error in the middle of a stream?.
Good to know#
- If calls fail unexpectedly, check status.clatterlabs.com before debugging further.
- Your key's account is responsible for your end users' text under the Abuse policy. What it means for apps
- Keep keys on your server, never in a browser or mobile app. Why
Still need help?#
- General support: support@clatterlabs.com or team@clatterlabs.xyz
- Infrastructure questions, or permanent deletion of your data (your whole account or one service): infrastructure@clatterlabs.xyz
We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.