Skip to main content
Watch: I Built an AI App Without Leaving Databricks

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

  1. Fix 1.

    Retry with full input context and previous_response_id set to null.

More OpenAI API errors

All 23 OpenAI API errors

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.

Newsletter

Know when the APIs change

One email per week. New model releases, API changes, what broke, and how developers are working around it.