POST /threads/{id}/history and updateState return 500 on factory graphs: '_ReadRuntime' object has no attribute 'context' in the gRPC checkpointer

Impact

On our LangSmith Deployment, for any thread on our main graph:

  • POST /threads/{id}/history (client.threads.getHistory) returns HTTP 500.
  • POST /threads/{id}/state (client.threads.updateState) returns HTTP 500.
  • GET /threads/{id}/state works.

Because the 500 response carries no CORS headers, browsers report it as a CORS failure. It breaks our chat UI’s history window and saving a partial reply after the user presses Stop.

Environment

We are using LangGraph Cloud environment. The problem seems to happen recently.

Server Log

langgraph_api/api/threads.py, in get_thread_history_post
langgraph_api/grpc/ops/threads.py, line 1302/1311, in list
langgraph/pregel/main.py, line 1579, in aget_state_history
langgraph_grpc_common/checkpointer.py, line 276, in alist
langgraph_grpc_common/conversion/checkpoint.py, line 48, in checkpoint_config_to_proto
langgraph_grpc_common/conversion/config.py, line 234, in config_to_proto
langgraph_grpc_common/conversion/config.py, line 313, in _inject_configurable_into_proto
langgraph_grpc_common/conversion/config.py, line 352, in runtime_to_proto
AttributeError: '_ReadRuntime' object has no attribute 'context'
updateState fails the same way, via aupdate_state → aperform_superstep → checkpointer.aget_tuple(config) → runtime_to_proto.

Potential Root cause, from reading langgraph-api 0.16.0 / 0.16.1

  1. For factory graphs, get_graph (langgraph_api/graph.py) builds a ServerRuntime through build_server_runtime(). For threads.read and threads.update that’s a langgraph_sdk.runtime._ReadRuntime. It is placed in config["configurable"][CONFIG_KEY_RUNTIME] and set as the ambient config (var_child_runnable_config).
  2. _ReadRuntime has no context (and no previous) field, by design.
  3. GrpcCheckpointer serialises configurable to protobuf. _inject_configurable_into_proto hands the runtime to runtime_to_proto(), which reads runtime.context (and runtime.previous), assuming LangGraph’s own Runtime. That raises AttributeError.
  4. GrpcCheckpointer appears to have been enabled on our deployment automatically. We never set PREFER_GRPC_CHECKPOINTER (or any checkpointer config) ourselves, and its default in langgraph_api/feature_flags.py is false, yet the trace above runs through GrpcCheckpointer on a Postgres runtime. The plain Postgres langgraph_runtime.checkpoint.Checkpointer never serialises the config to protobuf, so it doesn’t hit this; in langgraph-api 0.10.0, which we ran until late August, Postgres deployments always used it. We started seeing these 500s only after the move to the gRPC checkpointer.

This is critical for us and needs urgent attention. It is breaking core chat functionality for our users in production-bound environments: every request to load a conversation’s history (POST /threads/{id}/history) and every state update (POST /threads/{id}/state) fails with a 500 on every thread of our main graph. Users cannot scroll back through a conversation, and a reply the user stops mid-stream cannot be saved. Because the 500 carries no CORS headers, the browser surfaces it as a CORS failure, so the app gives users no useful error. Nothing in our code triggers it: the failure is inside the platform’s gRPC checkpointer, and the checkpointer appears to have been switched on without any change from us. Please prioritise a fix, or tell us how to disable the gRPC checkpointer on our deployment in the meantime.

Apologies for the delayed response here. I see you reached out to our Support team and got a solution. Closing the loop for anyone who hits this later.

This was an Agent Server bug, not your graph. For factory graphs, history and updateState handed the gRPC checkpointer the SDK’s _ReadRuntime, which it serialized expecting LangGraph’s own Runtime.

Fixed in 0.16.7+, 0.17.0rc6+, and 0.18.0.dev11+. A redeploy picks up the latest patch of your line. If you pin, set api_version to 0.16.7 or newer, see LangGraph CLI - Docs by LangChain .