# TypeError: Type is not JSON serializable: ProxyUser

**URL:** <https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975>\
**Category:** LangGraph\
**Tags:** langsmith-studio, python-help\
**Created:** [February 19, 2026, 9:15am UTC](https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975 "2026-02-19T09:15:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![darthShana](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@darthShana](https://forum.langchain.com/u/darthShana)\
**Post date:** [February 19, 2026, 9:15am UTC](https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975/1 "2026-02-19T09:15:23Z")

</div>

Hi Team

Im running my langgraph agent in the langgraph platform. Im using a deployment in langsmith which deploys my agent straight from GitHub..

After my last deployment im getting this error

```auto
TypeError('Type is not JSON serializable: ProxyUser')Traceback (most recent call last):

  File "/usr/local/lib/python3.11/site-packages/langgraph/pregel/main.py", line 2891, in astream
    async with AsyncPregelLoop(

  File "/usr/local/lib/python3.11/site-packages/langgraph/pregel/_loop.py", line 1264, in __aenter__
    saved = await self.checkpointer.aget_tuple(self.checkpoint_config)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.11/site-packages/langgraph_executor/remote_checkpointer.py", line 104, in aget_tuple

  File "/usr/local/lib/python3.11/site-packages/langgraph_grpc_common/conversion/config.py", line 217, in config_to_proto

  File "/usr/local/lib/python3.11/site-packages/langgraph_grpc_common/conversion/config.py", line 305, in _inject_configurable_into_proto

  File "/usr/local/lib/python3.11/site-packages/langgraph_grpc_common/conversion/config.py", line 305, in <dictcomp>

TypeError: Type is not JSON serializable: ProxyUser

```

I dont know where the ProxyUser is coming from it’s not something i have put its the config. I tried to use AI chat to get help but its suggesting a version mismatch, but im not setting any version in my deployment

---

<div class="post-metadata">

**Author:** ![pawel-twardziak](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/pawel-twardziak/32/960_2.png) [@pawel-twardziak](https://forum.langchain.com/u/pawel-twardziak)\
**Post date:** [February 19, 2026, 9:47am UTC](https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975/2 "2026-02-19T09:47:42Z")

</div>

hi @darthShana

could you share your code and your project dependencies along with their versions?

---

<div class="post-metadata">

**Author:** ![darthShana](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@darthShana](https://forum.langchain.com/u/darthShana)\
**Post date:** [February 19, 2026, 11:22am UTC](https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975/3 "2026-02-19T11:22:25Z")

</div>

```auto
[project]
name = "my_agent"
version = "0.1.0"
description = "Accounting Assistant LangGraph project for deployment to LangGraph Cloud"
authors = [
    {name = "darthShana"}
]
requires-python = ">=3.11,<3.13"
dependencies = [
    "langchain (>=1.1.3,<2.0.0)",
    "langchain-core (>=1.2.0,<2.0.0)",
    "langchain-anthropic (>=1.3.0,<2.0.0)",
    "langchain-community (>=0.4.1,<1.0.0)",
    "langgraph (>=1.0.5,<2.0.0)",
    "boto3>=1.36.6,<2.0.0",
    "pytest>=8.3.4,<9.0.0",
    "bs4>=0.0.2,<0.1.0",
    "html5lib>=1.1,<2.0",
    "pytest-mock>=3.14.0,<4.0.0",
    "poetry-plugin-dotenv>=2.6.1,<3.0.0",
    "langchain-voyageai (>=0.3.0,<1.0.0)",
    "langchain-pinecone (>=0.2.13,<1.0.0)",
    "chevron>=0.14.0,<0.15.0",
    "pandas>=2.2.3,<3.0.0",
    "pyjwt[crypto]>=2.10.1,<3.0.0",
    "langgraph-cli[inmem] (>=0.4.12,<0.5.0)",
    "langsmith[pytest] (>=0.4.59,<1.0.0)",
    "langgraph-api (>=0.7.13,<0.8.0)",
]

[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
include = ["my_agent*"]

[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(message)s"
log_file = "pytest.log"
log_file_level = "INFO"
log_file_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_file_date_format = "%Y-%m-%d %H:%M:%S"
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"

```

hey @pawel-twardziak this is my pyproject.toml..

!! i redeployed and it seems to not happen anymore.. however now my client is getting

```auto
[Error] ERROR – {value: Object, done: false}
{value: Object, done: false}Object
	handleError (main-DYXHKJI2.js:14:26417)
	next (main-DYXHKJI2.js:14:116949)
	next (main-DYXHKJI2.js:10:3117)
	_next (main-DYXHKJI2.js:10:2800)
	next (main-DYXHKJI2.js:10:2528)
	(anonymous function) (main-DYXHKJI2.js:10:7405)
	Jd (main-DYXHKJI2.js:10:2216)
	next (main-DYXHKJI2.js:10:7242)
	emit (main-DYXHKJI2.js:14:22179)
	run (polyfills-B6TNHZQ6.js:1:1777)
	onHandleError (main-DYXHKJI2.js:14:25557)
	runGuarded (polyfills-B6TNHZQ6.js:1:1957)
	(anonymous function) (polyfills-B6TNHZQ6.js:1:27909)
	$ (polyfills-B6TNHZQ6.js:1:9653)

```

---

<div class="post-metadata">

**Author:** ![darthShana](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@darthShana](https://forum.langchain.com/u/darthShana)\
**Post date:** [February 19, 2026, 11:24am UTC](https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975/4 "2026-02-19T11:24:15Z")

</div>

the graph seems to get invoked succesfully, but it the client gets an error

im using

```auto
"@langchain/langgraph-sdk": "^1.6.3",

```

---

<div class="post-metadata">

**Author:** ![pawel-twardziak](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/pawel-twardziak/32/960_2.png) [@pawel-twardziak](https://forum.langchain.com/u/pawel-twardziak)\
**Post date:** [February 19, 2026, 11:46am UTC](https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975/5 "2026-02-19T11:46:35Z")

</div>

how do you integrate with the frontend? Any code you could share?

---

<div class="post-metadata">

**Author:** ![wfh](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/wfh/32/33_2.png) [@wfh](https://forum.langchain.com/u/wfh)\
**Post date:** [February 19, 2026, 1:59pm UTC](https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975/6 "2026-02-19T13:59:26Z")

</div>

Thanks for your patience here! We’ve rewritten much of the persistence layer of the server in golang, and there were a couple versions where this serialization was impacted.

The client side error is unexpected. If you could help share some code snippets (can send in to support at LangChain dot dev if you don’t wish to publish here) , I can take a look

---

<div class="post-metadata">

**Author:** ![Aurora](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/aurora/32/2396_2.png) [@Aurora](https://forum.langchain.com/u/Aurora)\
**Post date:** [February 19, 2026, 5:54pm UTC](https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975/7 "2026-02-19T17:54:02Z")

</div>

Hey there!

As of yesterday (February 18th 2026, after the reported fix time of the[LangSmith Deployments Downtime incident](https://status.smith.langchain.com/incidents/01KHPQ5E3P6RJZ541TJX5NEA3Z#updates)) I started seeing this error as well - and with no material code change to our deploys (changed the value of two integers).

\*\*`TypeError('Type is not JSON serializable: ProxyUser')Traceback (most recent call last):`

` File "/usr/lib/python3.12/site-packages/langgraph/pregel/main.py", line 2891, in astream`  
` async with AsyncPregelLoop(`  
` ^^^^^^^^^^^^^^^^`

` File "/usr/lib/python3.12/site-packages/langgraph/pregel/_loop.py", line 1264, in __aenter__ `  
` saved = await self.checkpointer.aget_tuple(self.checkpoint_config)`  
` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^`

` File "/usr/lib/python3.12/site-packages/langgraph_executor/remote_checkpointer.py", line 104, in aget_tuple`  
` config=config_to_proto(config),`  
` ^^^^^^^^^^^^^^^^^^^^^^^`

` File "/usr/lib/python3.12/site-packages/langgraph_grpc_common/conversion/config.py", line 217, in config_to_proto`  
` _inject_configurable_into_proto(configurable, pb_config)`

` File "/usr/lib/python3.12/site-packages/langgraph_grpc_common/conversion/config.py", line 305, in _inject_configurable_into_proto`  
` {k: orjson.dumps(v) for k, v in extra.items()}`  
` ^^^^^^^^^^^^^^^`

`TypeError: Type is not JSON serializable: ProxyUser`\*\*

I am observing that my graph starts correctly and successfully runs a couple of nodes. but this error gets triggered as soon as a Subgraph is invoked (the Subgraph was pre-compiled).

```auto
    results = await COMPILED_QUERY_SUBGRAPH.ainvoke(

        {"queries": search_queries, "current_date": current_date, "results": []}, config=config

    )

```

In the above code snippit, ‘queries’ is a list of strings, ‘current\_date’ is in fact a string not a datetime object, and ‘config’ is a slightly modified RunnableConfig object.

---

<div class="post-metadata">

**Author:** ![darthShana](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@darthShana](https://forum.langchain.com/u/darthShana)\
**Post date:** [February 22, 2026, 6:13pm UTC](https://forum.langchain.com/t/typeerror-type-is-not-json-serializable-proxyuser/2975/9 "2026-02-22T18:13:21Z")

</div>

The client error was an issue on my side, looks like the new langgraph version has some different event types, which i needed to handle.

@Aurora your errror looks very similar to mine so i would give a redeploy a try and see if that solves it
