Google Gemini API error
Gemini API 499 CANCELLED: what it means and how to fix it
499 CANCELLEDRetry? Not statedLast verified 1 documented fix1 source
What it means
generateContent API: the operation was cancelled, typically by the caller.
Causes
- The client closed the connection before the API finished responding, for example due to a client-side timeout
How to fix it
- Fix 1.
Check whether your client or network infrastructure is prematurely closing the connection.
More Gemini API errors
All 30 Gemini API errorsHTTP 499 at other providers
FAQ
What does the Gemini API error "499 CANCELLED" mean?
generateContent API: the operation was cancelled, typically by the caller.
How do I fix Gemini API "499 CANCELLED"?
Check whether your client or network infrastructure is prematurely closing the connection.
Should I retry Gemini API "499 CANCELLED"?
Not stated. The official docs do not say whether this error is retryable.
Which other AI APIs return HTTP 499?
Per their official error docs: Cohere API (499 Request Cancelled), Groq API (499 Request Cancelled), Vertex AI (499 CANCELLED).
Sources
Last verified against 1 source: Gemini API's official docs and official SDK repositories.
Newsletter
Know when the APIs change
One email per week. New model releases, API changes, what broke, and how developers are working around it.