LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    Chat LangChain

    What can I help with?

    Enter to send·Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdkstreamerrors
    Module●Since v0.4

    errors

    Thread-stream failures, shared by the async and sync clients.

    Functions

    View source on GitHub
    function
    protocol_error
    function
    stream_error_frame
    function
    is_non_retryable_stream_error

    Build the error for a protocol {"type": "error"} envelope.

    Return the error in an unsolicited {"type": "error", "id": null} frame.

    The server sends one just before it closes a thread stream whose read failed.

    Whether reopening the stream would fail the same way.

    True for a 4xx other than 408 and 429: the status of a refused stream request or WebSocket upgrade, or a WebSocket close code of 4000 plus that status. A server that rejects a WebSocket after accepting it closes with such a code, because a browser can't read the status of a refused upgrade.