OpenAI API error
OpenAI API previous_response_not_found (Responses API WebSocket mode): what it means and how to fix it
Error message
previous_response_not_found (Responses API WebSocket mode)Retry? Not statedLast verified 1 documented fix1 source
What it means
In Responses API WebSocket mode, the previous_response_id cannot be resolved from available state.
Causes
- previous_response_id refers to state that is not available
How to fix it
- Fix 1.
Retry with full input context and previous_response_id set to null.
More OpenAI API errors
All 23 OpenAI API errors400 invalid_request_error (Invalid service_tier argument)Retry? Not stated401 Invalid AuthenticationRetry? Not stated401 Incorrect API key providedRetry? Not stated401 You must be a member of an organization to use the APIRetry? Not stated401 IP not authorizedRetry? Not stated403 Country, region, or territory not supportedRetry? Not stated429 credit_balance_exhaustedRetry? No429 Rate limit reached for requestsRetry? Yes
FAQ
What does the OpenAI API error "previous_response_not_found (Responses API WebSocket mode)" mean?
In Responses API WebSocket mode, the previous_response_id cannot be resolved from available state.
How do I fix OpenAI API "previous_response_not_found (Responses API WebSocket mode)"?
Retry with full input context and previous_response_id set to null.
Should I retry OpenAI API "previous_response_not_found (Responses API WebSocket mode)"?
Not stated. The official docs do not say whether this error is retryable.
Sources
Last verified against 1 source: OpenAI API's official docs and official SDK repositories.
- developers.openai.comhttps://developers.openai.com/api/docs/guides/error-codes
Newsletter
Know when the APIs change
One email per week. New model releases, API changes, what broke, and how developers are working around it.