LangGraph.js on LangGraph Platform, store's namespace is not hashable #338

Open
opened 2026-02-15 18:16:00 -05:00 by yindo · 0 comments
Owner

Originally created by @kenmueller on GitHub (Aug 12, 2025).

Checked other resources

  • This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

store.get(namespace, key)

Error Message and Stack Trace (if applicable)

[ERROR] Error calling remote handler
Traceback (most recent call last):
  File "/api/langgraph_api/js/remote.py", line 706, in wrapped
  File "/api/langgraph_api/js/remote.py", line 640, in store_get
  File "/usr/lib/python3.12/site-packages/langgraph/store/base/batch.py", line 94, in aget
    return await fut
           ^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/langgraph/store/base/batch.py", line 340, in _run
    results = await s.abatch(dedupped)
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/langgraph_runtime_postgres/store.py", line 68, in abatch
    await self._execute_batch(grouped_ops, results, conn)
  File "/usr/lib/python3.12/site-packages/langgraph/store/postgres/aio.py", line 396, in _execute_batch
    await self._batch_get_ops(
  File "/usr/lib/python3.12/site-packages/langgraph/store/postgres/aio.py", line 431, in _batch_get_ops
    for query, params, namespace, items in self._get_batch_GET_ops_queries(get_ops):
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/langgraph/store/postgres/base.py", line 253, in _get_batch_GET_ops_queries
    namespace_groups[op.namespace].append((idx, op.key))
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
TypeError: unhashable type: 'list'

Description

store.get works locally in langgraph.js. However, hosting on LangGraph Platform, it throws the error above since the namespace list is not converted into a tuple and is therefore unhashable. I can't use stores in production.

System Info

N/A

Originally created by @kenmueller on GitHub (Aug 12, 2025). ### Checked other resources - [x] This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/). - [x] I added a clear and detailed title that summarizes the issue. - [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [x] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python store.get(namespace, key) ``` ### Error Message and Stack Trace (if applicable) ```shell [ERROR] Error calling remote handler Traceback (most recent call last): File "/api/langgraph_api/js/remote.py", line 706, in wrapped File "/api/langgraph_api/js/remote.py", line 640, in store_get File "/usr/lib/python3.12/site-packages/langgraph/store/base/batch.py", line 94, in aget return await fut ^^^^^^^^^ File "/usr/lib/python3.12/site-packages/langgraph/store/base/batch.py", line 340, in _run results = await s.abatch(dedupped) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/langgraph_runtime_postgres/store.py", line 68, in abatch await self._execute_batch(grouped_ops, results, conn) File "/usr/lib/python3.12/site-packages/langgraph/store/postgres/aio.py", line 396, in _execute_batch await self._batch_get_ops( File "/usr/lib/python3.12/site-packages/langgraph/store/postgres/aio.py", line 431, in _batch_get_ops for query, params, namespace, items in self._get_batch_GET_ops_queries(get_ops): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/langgraph/store/postgres/base.py", line 253, in _get_batch_GET_ops_queries namespace_groups[op.namespace].append((idx, op.key)) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ TypeError: unhashable type: 'list' ``` ### Description store.get works locally in langgraph.js. However, hosting on LangGraph Platform, it throws the error above since the namespace list is not converted into a tuple and is therefore unhashable. I can't use stores in production. ### System Info N/A
yindo added the bug label 2026-02-15 18:16:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#338