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
- For factory graphs,
get_graph(langgraph_api/graph.py) builds aServerRuntimethroughbuild_server_runtime(). Forthreads.readandthreads.updatethat’s alanggraph_sdk.runtime._ReadRuntime. It is placed inconfig["configurable"][CONFIG_KEY_RUNTIME]and set as the ambient config (var_child_runnable_config). _ReadRuntimehas nocontext(and noprevious) field, by design.GrpcCheckpointerserialisesconfigurableto protobuf._inject_configurable_into_protohands the runtime toruntime_to_proto(), which readsruntime.context(andruntime.previous), assuming LangGraph’s ownRuntime. That raisesAttributeError.GrpcCheckpointerappears to have been enabled on our deployment automatically. We never setPREFER_GRPC_CHECKPOINTER(or any checkpointer config) ourselves, and its default inlanggraph_api/feature_flags.pyisfalse, yet the trace above runs throughGrpcCheckpointeron a Postgres runtime. The plain Postgreslanggraph_runtime.checkpoint.Checkpointernever 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.