LangGraph Studio fails to render graph correctly (langgraph-cli throws 'Failed to extract schema' errors) #306

Closed
opened 2026-02-15 18:15:41 -05:00 by yindo · 18 comments
Owner

Originally created by @nigel-daniels on GitHub (Jul 12, 2025).

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangGraph.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangGraph.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package).

Example Code

I am working on the following code (it's a JS version of the code in the Ambient Agents course using HITL) I have created a temporary repo here.

Error Message and Stack Trace (if applicable)

info:    ▪ Starting server...
info:    ▪ Initializing storage...
info:    ▪ Registering graphs from /Users/nigel/git/ambient-agents/04_human_in_the_loop
info:    ┏ Registering graph with id 'assistant'
info:    ┗ [1] { graph_id: 'assistant' }
info:    ▪ Starting 10 workers
info:    ▪ Server running at ::1:2024
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/graph?xray=true
info:    ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/graph?xray=true 200 4ms
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 1ms
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 1ms
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502
info:    ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502 200 0ms
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 1ms
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas
info:    ▪ <-- GET /info
info:    ▪ --> GET /info 200 1ms
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 1ms
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/graph?xray=true
info:    ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/graph?xray=true 200 1ms
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true
Error: Failed to extract schema for "assistant"
    at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:104:29
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:100:20
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async logger2 (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/middleware/logger/index.js:38:5)
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) {
  [cause]: Error: Schema extract worker timed out
      at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24)
      at listOnTimeout (node:internal/timers:588:17)
      at process.processTimers (node:internal/timers:523:7)
}
info:    ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas 500 30s
Error: Failed to extract schema for "assistant"
    at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:138:33
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:133:24
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) {
  [cause]: Error: Schema extract worker timed out
      at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24)
      at listOnTimeout (node:internal/timers:588:17)
      at process.processTimers (node:internal/timers:523:7)
}
info:    ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true 500 30s
Error: Failed to extract schema for "assistant"
    at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:104:29
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:100:20
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async logger2 (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/middleware/logger/index.js:38:5)
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) {
  [cause]: Error: Schema extract worker timed out
      at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24)
      at listOnTimeout (node:internal/timers:588:17)
      at process.processTimers (node:internal/timers:523:7)
}
info:    ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas 500 30s
Error: Failed to extract schema for "assistant"
    at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:138:33
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:133:24
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) {
  [cause]: Error: Schema extract worker timed out
      at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24)
      at listOnTimeout (node:internal/timers:588:17)
      at process.processTimers (node:internal/timers:523:7)
}
info:    ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true 500 30s
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true
Error: Failed to extract schema for "assistant"
    at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:104:29
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:100:20
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async logger2 (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/middleware/logger/index.js:38:5)
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) {
  [cause]: Error: Schema extract worker timed out
      at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24)
      at listOnTimeout (node:internal/timers:588:17)
      at process.processTimers (node:internal/timers:523:7)
}
info:    ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas 500 30s
Error: Failed to extract schema for "assistant"
    at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:138:33
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:133:24
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17)
    at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9
    at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) {
  [cause]: Error: Schema extract worker timed out
      at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24)
      at listOnTimeout (node:internal/timers:588:17)
      at process.processTimers (node:internal/timers:523:7)
}
info:    ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true 500 30s
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true
info:    ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 0ms

Description

First time I ran langgraph-cli I viewed the graph and it looked exactly like the graph I expected to see as shown at end of the Human-in-the-loop exercise for the Ambient Agents course.
Image
Regrettably I did not screen shot it at the time(this is from the course) as I was then using langgraph-cli@0.0.41 and there was a note to upgrade to 0.0.45 on screen. After performing the upgrade I have seen the errors, inconsitent behavior and the graph takes a very long lime to complete loading. In my main repo I tried reverting to the older 0.0.41 version but the errors remained. I tried removing the .langgraph-api and restarting but no changes there.

I created this new test-repo and have a clean install of the 0.0.45 version but the errors remain. The first time I ran this up I got a blank graph (after it finally loaded!), I reloaded the page and, after a delay got:

Image

At other times I have got a blank graph, or a graph without the triage_interrupt_handler present. Attempting to run the graph fails with timeouts as well.
Given the inconsitent behavior I feel there is more likely a defect here but it could be I missed a step, the documentation and examples for LangGraph Studio (JS) are a bit more sparse.

System Info

Platform : MacOS Sequoia 15.5
Node: v22.15.0
Package Manager: npm 11.4.2
Packages: npm ls

test-repo@1.0.0 /Users/nigel/git/test-repo
├── @langchain/langgraph-cli@0.0.45
├── @langchain/langgraph@0.3.8
├── @langchain/openai@0.5.18
├── dotenv@17.2.0
├── langsmith@0.3.43
├── string-template@1.0.0
├── terminal-image@3.1.1
├── tsx@4.20.3
├── uuid@11.1.0
└── zod@3.25.76
Originally created by @nigel-daniels on GitHub (Jul 12, 2025). ### Checked other resources - [x] I added a very descriptive title to this issue. - [x] I searched the LangGraph.js documentation with the integrated search. - [x] I used the GitHub search to find a similar question and didn't find it. - [x] I am sure that this is a bug in LangGraph.js rather than my code. - [x] The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package). ### Example Code I am working on the following code (it's a JS version of the code in the Ambient Agents course using HITL) I have created a temporary repo [here](https://github.com/nigel-daniels/test-repo). ### Error Message and Stack Trace (if applicable) ``` info: ▪ Starting server... info: ▪ Initializing storage... info: ▪ Registering graphs from /Users/nigel/git/ambient-agents/04_human_in_the_loop info: ┏ Registering graph with id 'assistant' info: ┗ [1] { graph_id: 'assistant' } info: ▪ Starting 10 workers info: ▪ Server running at ::1:2024 info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/graph?xray=true info: ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/graph?xray=true 200 4ms info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 1ms info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 1ms info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502 info: ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502 200 0ms info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 1ms info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas info: ▪ <-- GET /info info: ▪ --> GET /info 200 1ms info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 1ms info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/graph?xray=true info: ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/graph?xray=true 200 1ms info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true Error: Failed to extract schema for "assistant" at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:104:29 at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:100:20 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async logger2 (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/middleware/logger/index.js:38:5) at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) { [cause]: Error: Schema extract worker timed out at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24) at listOnTimeout (node:internal/timers:588:17) at process.processTimers (node:internal/timers:523:7) } info: ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas 500 30s Error: Failed to extract schema for "assistant" at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:138:33 at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:133:24 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) { [cause]: Error: Schema extract worker timed out at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24) at listOnTimeout (node:internal/timers:588:17) at process.processTimers (node:internal/timers:523:7) } info: ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true 500 30s Error: Failed to extract schema for "assistant" at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:104:29 at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:100:20 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async logger2 (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/middleware/logger/index.js:38:5) at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) { [cause]: Error: Schema extract worker timed out at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24) at listOnTimeout (node:internal/timers:588:17) at process.processTimers (node:internal/timers:523:7) } info: ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas 500 30s Error: Failed to extract schema for "assistant" at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:138:33 at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:133:24 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) { [cause]: Error: Schema extract worker timed out at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24) at listOnTimeout (node:internal/timers:588:17) at process.processTimers (node:internal/timers:523:7) } info: ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true 500 30s info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true Error: Failed to extract schema for "assistant" at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:104:29 at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:100:20 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async logger2 (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/middleware/logger/index.js:38:5) at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) { [cause]: Error: Schema extract worker timed out at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24) at listOnTimeout (node:internal/timers:588:17) at process.processTimers (node:internal/timers:523:7) } info: ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas 500 30s Error: Failed to extract schema for "assistant" at getCachedStaticGraphSchema (file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:82:19) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:138:33 at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:133:24 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) at async file:///Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/http/middleware.mjs:51:9 at async dispatch (file:///Users/nigel/git/ambient-agents/node_modules/hono/dist/compose.js:22:17) { [cause]: Error: Schema extract worker timed out at Timeout._onTimeout (/Users/nigel/git/ambient-agents/node_modules/@langchain/langgraph-api/dist/graph/parser/index.mjs:23:24) at listOnTimeout (node:internal/timers:588:17) at process.processTimers (node:internal/timers:523:7) } info: ▪ --> GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true 500 30s info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/subgraphs?recurse=true info: ▪ <-- GET /assistants/453d1cbf-0bdd-5d35-a224-394f372c0502/schemas info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 0ms ``` ### Description First time I ran langgraph-cli I viewed the graph and it looked exactly like the graph I expected to see as shown at end of the Human-in-the-loop exercise for the Ambient Agents course. <img width="1004" height="476" alt="Image" src="https://github.com/user-attachments/assets/2b85f063-4ed0-4412-886a-ab200a7893ba" /> Regrettably I did not screen shot it at the time(this is from the course) as I was then using langgraph-cli@0.0.41 and there was a note to upgrade to 0.0.45 on screen. After performing the upgrade I have seen the errors, inconsitent behavior and the graph takes a very long lime to complete loading. In my main repo I tried reverting to the older 0.0.41 version but the errors remained. I tried removing the `.langgraph-api` and restarting but no changes there. I created this new `test-repo` and have a clean install of the 0.0.45 version but the errors remain. The first time I ran this up I got a blank graph (after it finally loaded!), I reloaded the page and, after a delay got: <img width="1118" height="709" alt="Image" src="https://github.com/user-attachments/assets/055d6c01-4e81-4213-9706-93b255696735" /> At other times I have got a blank graph, or a graph without the `triage_interrupt_handler` present. Attempting to run the graph fails with timeouts as well. Given the inconsitent behavior I feel there is more likely a defect here but it could be I missed a step, the documentation and examples for LangGraph Studio (JS) are a bit more sparse. ### System Info Platform : MacOS Sequoia 15.5 Node: v22.15.0 Package Manager: npm 11.4.2 Packages: npm ls ``` test-repo@1.0.0 /Users/nigel/git/test-repo ├── @langchain/langgraph-cli@0.0.45 ├── @langchain/langgraph@0.3.8 ├── @langchain/openai@0.5.18 ├── dotenv@17.2.0 ├── langsmith@0.3.43 ├── string-template@1.0.0 ├── terminal-image@3.1.1 ├── tsx@4.20.3 ├── uuid@11.1.0 └── zod@3.25.76 ```
yindo closed this issue 2026-02-15 18:15:41 -05:00
Author
Owner

@nigel-daniels commented on GitHub (Jul 12, 2025):

NB: if you uncomment the final showGraph line in the assistant.ts you can then just run:

npx tsx assistant.ts

This produces a file called graph.png in the shared directory that shows the graph appears to be correct.

@nigel-daniels commented on GitHub (Jul 12, 2025): NB: if you uncomment the final `showGraph` line in the `assistant.ts` you can then just run: ```sh npx tsx assistant.ts ``` This produces a file called `graph.png` in the `shared` directory that shows the graph appears to be correct.
Author
Owner

@philhradecs commented on GitHub (Jul 17, 2025):

I see the same error after replacing the deprecated Langchain Tavily Community integration with the one from @langchain/tavily. The error disappears when switching back to the deprecated one or commenting out the Tavily-related nodes altogether.

This leads me to think that it has something to do with internal dependency versions.

More context
I started out with the Langgraph JS Full-stack app: https://github.com/langchain-ai/create-agent-chat-app
I use PNPM
Here are my installed dependencies in the agents workspace:

"dependencies": {
    "@elastic/elasticsearch": "^8.17.1",
    "@langchain/anthropic": "^0.3.15",
    "@langchain/cohere": "^0.3.2",
    "@langchain/community": "^0.3.35",
    "@langchain/core": "^0.3.42",
    "@langchain/langgraph": "^0.2.55",
    "@langchain/langgraph-checkpoint": "^0.0.16",
    "@langchain/mongodb": "^0.1.0",
    "@langchain/openai": "^0.4.4",
    "@langchain/pinecone": "^0.2.0",
    "@langchain/tavily": "^0.1.4",
    "@pinecone-database/pinecone": "^5.1.1",
    "dotenv": "^16.4.5",
    "langchain": "^0.3.19",
    "mongodb": "^6.14.2",
    "uuid": "^10.0.0",
    "zod": "^3.25.76"
  },

In the root package.json the resolutions field is set (included in the template)

 "resolutions": {
    "@langchain/core": "^0.3.42"
  },
@philhradecs commented on GitHub (Jul 17, 2025): I see the same error after replacing the deprecated Langchain Tavily Community integration with the one from `@langchain/tavily`. The error disappears when switching back to the deprecated one or commenting out the Tavily-related nodes altogether. This leads me to think that it has something to do with internal dependency versions. **More context** I started out with the Langgraph JS Full-stack app: https://github.com/langchain-ai/create-agent-chat-app I use PNPM Here are my installed dependencies in the `agents` workspace: ``` "dependencies": { "@elastic/elasticsearch": "^8.17.1", "@langchain/anthropic": "^0.3.15", "@langchain/cohere": "^0.3.2", "@langchain/community": "^0.3.35", "@langchain/core": "^0.3.42", "@langchain/langgraph": "^0.2.55", "@langchain/langgraph-checkpoint": "^0.0.16", "@langchain/mongodb": "^0.1.0", "@langchain/openai": "^0.4.4", "@langchain/pinecone": "^0.2.0", "@langchain/tavily": "^0.1.4", "@pinecone-database/pinecone": "^5.1.1", "dotenv": "^16.4.5", "langchain": "^0.3.19", "mongodb": "^6.14.2", "uuid": "^10.0.0", "zod": "^3.25.76" }, ``` In the root `package.json` the `resolutions` field is set (included in the template) ``` "resolutions": { "@langchain/core": "^0.3.42" }, ```
Author
Owner

@markussen145 commented on GitHub (Jul 21, 2025):

Same exact error here, no matter if i use tavily tool or just a plain agent in 1 node. Here are my dependencies:

"dependencies": {
    "@langchain/anthropic": "^0.3.21",
    "@langchain/community": "^0.3.45",
    "@langchain/core": "^0.3.57",
    "@langchain/langgraph": "^0.3.0",
    "@octokit/rest": "^22.0.0",
    "@types/d3": "^7.4.3",
    "canvas": "^3.1.2",
    "d3": "^7.9.0",
    "langchain": "^0.3.27",
    "tslab": "^1.0.22"
  }
@markussen145 commented on GitHub (Jul 21, 2025): Same exact error here, no matter if i use tavily tool or just a plain agent in 1 node. Here are my dependencies: ``` "dependencies": { "@langchain/anthropic": "^0.3.21", "@langchain/community": "^0.3.45", "@langchain/core": "^0.3.57", "@langchain/langgraph": "^0.3.0", "@octokit/rest": "^22.0.0", "@types/d3": "^7.4.3", "canvas": "^3.1.2", "d3": "^7.9.0", "langchain": "^0.3.27", "tslab": "^1.0.22" }
Author
Owner

@jeroenslor commented on GitHub (Jul 24, 2025):

I see the same error after replacing the deprecated Langchain Tavily Community integration with the one from @langchain/tavily. The error disappears when switching back to the deprecated one or commenting out the Tavily-related nodes altogether.

This leads me to think that it has something to do with internal dependency versions.

More context
I started out with the Langgraph JS Full-stack app: https://github.com/langchain-ai/create-agent-chat-app
I use PNPM
Here are my installed dependencies in the agents workspace:

"dependencies": {
    "@elastic/elasticsearch": "^8.17.1",
    "@langchain/anthropic": "^0.3.15",
    "@langchain/cohere": "^0.3.2",
    "@langchain/community": "^0.3.35",
    "@langchain/core": "^0.3.42",
    "@langchain/langgraph": "^0.2.55",
    "@langchain/langgraph-checkpoint": "^0.0.16",
    "@langchain/mongodb": "^0.1.0",
    "@langchain/openai": "^0.4.4",
    "@langchain/pinecone": "^0.2.0",
    "@langchain/tavily": "^0.1.4",
    "@pinecone-database/pinecone": "^5.1.1",
    "dotenv": "^16.4.5",
    "langchain": "^0.3.19",
    "mongodb": "^6.14.2",
    "uuid": "^10.0.0",
    "zod": "^3.25.76"
  },

In the root package.json the resolutions field is set (included in the template)

 "resolutions": {
    "@langchain/core": "^0.3.42"
  },

Same

@jeroenslor commented on GitHub (Jul 24, 2025): > I see the same error after replacing the deprecated Langchain Tavily Community integration with the one from `@langchain/tavily`. The error disappears when switching back to the deprecated one or commenting out the Tavily-related nodes altogether. > > This leads me to think that it has something to do with internal dependency versions. > > **More context** > I started out with the Langgraph JS Full-stack app: https://github.com/langchain-ai/create-agent-chat-app > I use PNPM > Here are my installed dependencies in the `agents` workspace: > ``` > "dependencies": { > "@elastic/elasticsearch": "^8.17.1", > "@langchain/anthropic": "^0.3.15", > "@langchain/cohere": "^0.3.2", > "@langchain/community": "^0.3.35", > "@langchain/core": "^0.3.42", > "@langchain/langgraph": "^0.2.55", > "@langchain/langgraph-checkpoint": "^0.0.16", > "@langchain/mongodb": "^0.1.0", > "@langchain/openai": "^0.4.4", > "@langchain/pinecone": "^0.2.0", > "@langchain/tavily": "^0.1.4", > "@pinecone-database/pinecone": "^5.1.1", > "dotenv": "^16.4.5", > "langchain": "^0.3.19", > "mongodb": "^6.14.2", > "uuid": "^10.0.0", > "zod": "^3.25.76" > }, > ``` > > In the root `package.json` the `resolutions` field is set (included in the template) > ``` > "resolutions": { > "@langchain/core": "^0.3.42" > }, > ``` Same
Author
Owner

@habberrih commented on GitHub (Jul 24, 2025):

I have the same issue

@habberrih commented on GitHub (Jul 24, 2025): I have the same issue
Author
Owner

@nigel-daniels commented on GitHub (Jul 25, 2025):

FYI I was not using Tavily, I have a much simpler dependency list:

test-repo@1.0.0 /Users/nigel/git/test-repo
├── @langchain/langgraph-cli@0.0.45
├── @langchain/langgraph@0.3.8
├── @langchain/openai@0.5.18
├── dotenv@17.2.0
├── langsmith@0.3.43
├── string-template@1.0.0
├── terminal-image@3.1.1
├── tsx@4.20.3
├── uuid@11.1.0
└── zod@3.25.76

This is completely blocking my ability to use LangGraph Studio as I cannot inject messages or access the Agent Inbox when it's broken like this :(

@nigel-daniels commented on GitHub (Jul 25, 2025): FYI I was not using Tavily, I have a much simpler dependency list: ``` test-repo@1.0.0 /Users/nigel/git/test-repo ├── @langchain/langgraph-cli@0.0.45 ├── @langchain/langgraph@0.3.8 ├── @langchain/openai@0.5.18 ├── dotenv@17.2.0 ├── langsmith@0.3.43 ├── string-template@1.0.0 ├── terminal-image@3.1.1 ├── tsx@4.20.3 ├── uuid@11.1.0 └── zod@3.25.76 ``` This is completely blocking my ability to use LangGraph Studio as I cannot inject messages or access the Agent Inbox when it's broken like this :(
Author
Owner

@ddewaele commented on GitHub (Jul 25, 2025):

Did some debugging and noticed that depending on what dependencies you have and are using in your agent that it can take a very long time for the buildGenerator to complete. (part of the LangGraph API schema parser)

The default timeout that langgraph uses is 30 seconds.

On my Macbook Pro M3 Max it took

  • over 60 seconds with the new Tavily search (the non deprecated one)
  • only 300ms with the deprecated Tavily search (the one in the docs)

Definitely some typescript black voodoo magic going on. (debugging the typescript types part is pure hell). Unfortunately I am not familiar enough with the Typescript types logic in LangGraph API or what the Tavily library is doing

But for others experiencing this problem it is possible to set a larger timeout via the LANGGRAPH_SCHEMA_RESOLVE_TIMEOUT_MS env var

This is the amount of time in ms that the background workers get to fetch the schema's

You might also want to give your node process some additional memory cause mine errored out with JS heap out of memory with the default 2 gig.

export NODE_OPTIONS="--max-old-space-size=8192"

Update :

Did some additional debugging and its indeed the Tavily typescript files that take a very long time to parse.
The problem is getting worse as the langgraph cli appears to be calling the /schemas multiple times, resulting in additional workers that will process the same files

Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/openai/index.d.ts
Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/openai/index.d.ts
Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/utils.d.ts
Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/utils.d.ts
Duration: 12420 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-extract.d.ts
Duration: 12420 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-extract.d.ts
Duration: 19306 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-search.d.ts
Duration: 19306 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-search.d.ts
Duration: 22600 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-crawl.d.ts
Duration: 22600 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-crawl.d.ts
Duration: 36782 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-map.d.ts
Duration: 36782 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-map.d.ts
Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/index.d.ts
Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/index.d.ts
Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/index.d.ts
Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/index.d.ts
Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/community/dist/tools/tavily_search.d.ts
@ddewaele commented on GitHub (Jul 25, 2025): Did some debugging and noticed that depending on what dependencies you have and are using in your agent that it can take **a very long time** for the `buildGenerator` to complete. (part of the LangGraph API schema parser) The default timeout that langgraph uses is 30 seconds. On my Macbook Pro M3 Max it took - over 60 seconds with the new Tavily search (the non deprecated one) - only 300ms with the deprecated Tavily search (the one in the docs) Definitely some typescript black voodoo magic going on. (debugging the typescript types part is pure hell). Unfortunately I am not familiar enough with the Typescript types logic in LangGraph API or what the Tavily library is doing But for others experiencing this problem it is possible to set a larger timeout via the `LANGGRAPH_SCHEMA_RESOLVE_TIMEOUT_MS` env var This is the amount of time in ms that the background workers get to fetch the schema's You might also want to give your node process some additional memory cause mine errored out with `JS heap out of memory` with the default 2 gig. ``` export NODE_OPTIONS="--max-old-space-size=8192" ``` **Update :** Did some additional debugging and its indeed the Tavily typescript files that take a very long time to parse. The problem is getting worse as the langgraph cli appears to be calling the `/schemas` multiple times, resulting in additional workers that will process the same files ``` Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/openai/index.d.ts Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/openai/index.d.ts Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/utils.d.ts Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/utils.d.ts Duration: 12420 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-extract.d.ts Duration: 12420 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-extract.d.ts Duration: 19306 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-search.d.ts Duration: 19306 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-search.d.ts Duration: 22600 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-crawl.d.ts Duration: 22600 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-crawl.d.ts Duration: 36782 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-map.d.ts Duration: 36782 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/tavily-map.d.ts Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/index.d.ts Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/dist/index.d.ts Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/index.d.ts Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/tavily/index.d.ts Duration: 0 ms for /Users/davydewaele/Projects/AgenticAI/nestjs-mcp/langgraph-platform-simple-agent/node_modules/@langchain/community/dist/tools/tavily_search.d.ts ```
Author
Owner

@nigel-daniels commented on GitHub (Jul 25, 2025):

I tried this on a MacBook Pro, M3 Max (36Gb) with the following commands:

export NODE_OPTIONS="--max-old-space-size=8192"
export LANGGRAPH_SCHEMA_RESOLVE_TIMEOUT_MS=120000
npx @langchain/langgraph-cli dev

My graph is not using Tavily, the graph did seem to load after 2-3 mins of waiting I got this:

Image However in the output I see the following messages:
info:    ▪ Starting server...
info:    ▪ Initializing storage...
info:    ▪ Registering graphs from /Users/nigel/git/ambient-agents/05_memory
info:    ┏ Registering graph with id 'memory_assistant'
info:    ┗ [1] { graph_id: 'memory_assistant' }
info:    ▪ Starting 10 workers
info:    ▪ Server running at ::1:2024
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 2ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 0ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 0ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 0ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true 200 1ms
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 0ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true
info:    ▪ <-- GET /info
info:    ▪ --> GET /info 200 0ms
info:    ▪ <-- GET /info
info:    ▪ --> GET /info 200 0ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true 200 1ms
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 0ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true
Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas 200 94s
Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 8ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 0ms
Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true 200 96s
Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true 200 96s
Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas 200 97s
Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis...
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 7ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 1ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true 200 1ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 1ms
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas 200 4ms
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true 200 6ms
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 1ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 0ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true 200 1ms
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 1ms
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true
info:    ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas
info:    ▪ <-- POST /assistants/search
info:    ▪ --> POST /assistants/search 200 0ms
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true 200 3ms
info:    ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas 200 4ms

It looks like it is still struggling to load some items? Any ideas how I resolve the types it is complaining about? It could be these were causing the original fails.

@nigel-daniels commented on GitHub (Jul 25, 2025): I tried this on a MacBook Pro, M3 Max (36Gb) with the following commands: ``` export NODE_OPTIONS="--max-old-space-size=8192" export LANGGRAPH_SCHEMA_RESOLVE_TIMEOUT_MS=120000 npx @langchain/langgraph-cli dev ``` My graph is not using Tavily, the graph did seem to load after 2-3 mins of waiting I got this: <img width="969" height="657" alt="Image" src="https://github.com/user-attachments/assets/449b9c74-0777-41e8-bc2c-807832b51d67" /> However in the output I see the following messages: ``` info: ▪ Starting server... info: ▪ Initializing storage... info: ▪ Registering graphs from /Users/nigel/git/ambient-agents/05_memory info: ┏ Registering graph with id 'memory_assistant' info: ┗ [1] { graph_id: 'memory_assistant' } info: ▪ Starting 10 workers info: ▪ Server running at ::1:2024 info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 2ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 0ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 0ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 0ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true 200 1ms info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 0ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true info: ▪ <-- GET /info info: ▪ --> GET /info 200 0ms info: ▪ <-- GET /info info: ▪ --> GET /info 200 0ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true 200 1ms info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 0ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas 200 94s Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 8ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 0ms Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true 200 96s Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true 200 96s Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas 200 97s Failed to obtain symbol "__langgraph__emailAssistant_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__update": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... Failed to obtain symbol "__langgraph__emailAssistant_response_agent_assistant_ts__input": Unsupported type: 0 extends 1 & ValueType ? ValueType | undefined : Wrap<MatchBaseMessageArray<ValueType>> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dist/messages/base").BaseMessage[] : Wrap<...> extends Wrap<...> ? import("/Users/nigel/git/ambient-agents/node_modules/@langchain/core/dis... info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 7ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 1ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true 200 1ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 1ms info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas 200 4ms info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true 200 6ms info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 1ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd 200 0ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/graph?xray=true 200 1ms info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 1ms info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true info: ▪ <-- GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas info: ▪ <-- POST /assistants/search info: ▪ --> POST /assistants/search 200 0ms info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/subgraphs?recurse=true 200 3ms info: ▪ --> GET /assistants/a8faebdb-583f-5c37-abe2-6d74a148e1dd/schemas 200 4ms ``` It looks like it is still struggling to load some items? Any ideas how I resolve the types it is complaining about? It could be these were causing the original fails.
Author
Owner

@ddewaele commented on GitHub (Jul 26, 2025):

@nigel-daniels : took a quick look at your repo and the performance issue with the schema parsing seems to be related to the zod version.

(perhaps this is the same issue with the new Tavily dependency, a dependency to an older zod version causing performance issues)

Bumping your dependencies will help speed things up considerably.

  "dependencies": {
    "@langchain/langgraph": "^0.3.11",
    "@langchain/langgraph-cli": "^0.0.51",
    "@langchain/openai": "^0.6.3",
    "string-template": "^1.0.0",
    "terminal-image": "^3.1.1",
    "tsx": "^4.20.3",
    "uuid": "^11.1.0",
    "zod": "^4.0.10"
  },

Regarding the other issues, that seems to be related to passing your state to the StateGraph

Didn't have the time to do a deep-dive, and also just switched from python langgraph to langgraphjs but if you do this the errors go away (but might not be what you want ... hopefully it will get you in a right direction).

new StateGraph(MessagesAnnotation)

Some pointers on how to define state can be found here : https://langchain-ai.github.io/langgraphjs/how-tos/define-state/

@ddewaele commented on GitHub (Jul 26, 2025): @nigel-daniels : took a quick look at your repo and the performance issue with the schema parsing seems to be related to the zod version. (perhaps this is the same issue with the new Tavily dependency, a dependency to an older zod version causing performance issues) Bumping your dependencies will help speed things up considerably. ``` "dependencies": { "@langchain/langgraph": "^0.3.11", "@langchain/langgraph-cli": "^0.0.51", "@langchain/openai": "^0.6.3", "string-template": "^1.0.0", "terminal-image": "^3.1.1", "tsx": "^4.20.3", "uuid": "^11.1.0", "zod": "^4.0.10" }, ``` Regarding the other issues, that seems to be related to passing your `state` to the `StateGraph` Didn't have the time to do a deep-dive, and also just switched from python langgraph to langgraphjs but if you do this the errors go away (but might not be what you want ... hopefully it will get you in a right direction). ``` new StateGraph(MessagesAnnotation) ``` Some pointers on how to define state can be found here : https://langchain-ai.github.io/langgraphjs/how-tos/define-state/
Author
Owner

@ddewaele commented on GitHub (Jul 26, 2025):

@jeroenslor : if you can get tavily to use zod v4 it should work.

I do think that @browserbasehq/stagehand@1.14.0 (a dependency of @langchain/community) requires zod@^3.23.8 so beware of conflicts.

I just quickly tested it with zod v4 and it works with the new tavily from @langchain/tavily. Starts up in about a second now

@ddewaele commented on GitHub (Jul 26, 2025): @jeroenslor : if you can get tavily to use zod v4 it should work. I do think that @browserbasehq/stagehand@1.14.0 (a dependency of @langchain/community) requires zod@^3.23.8 so beware of conflicts. I just quickly tested it with zod v4 and it works with the new tavily from `@langchain/tavily`. Starts up in about a second now
Author
Owner

@ddewaele commented on GitHub (Jul 26, 2025):

@philhradecs : it is related to this zod dependency in @langchain/tavily

https://github.com/langchain-ai/langchainjs/blob/main/libs/langchain-tavily/package.json#L85

Version 4 of zod speed things up considerably.

As soon as you start using the new tavily search in @langchain/tavily it will become very slow.

The older community version of tavily search used by create-agent-chat-app did not use zod and also doesn't get a lot of love (last update 3 months ago)

@ddewaele commented on GitHub (Jul 26, 2025): @philhradecs : it is related to this zod dependency in @langchain/tavily https://github.com/langchain-ai/langchainjs/blob/main/libs/langchain-tavily/package.json#L85 Version 4 of zod speed things up considerably. As soon as you start using the new tavily search in @langchain/tavily it will become very slow. The older community version of tavily search used by [create-agent-chat-app](https://github.com/langchain-ai/create-agent-chat-app) did not use zod and also doesn't get a lot of love (last update 3 months ago)
Author
Owner

@nigel-daniels commented on GitHub (Jul 26, 2025):

@ddewaele thanks, updating zod made a huge difference, the graph renders correctly in seconds. I agree it looks like I need to dig deeper on the state and figure out the other defects but that seems unrelated to the original problem as updating zod has fixed that. I'll run further tests to ensure it's playing nicely with everything else :)

@nigel-daniels commented on GitHub (Jul 26, 2025): @ddewaele thanks, updating `zod` made a huge difference, the graph renders correctly in seconds. I agree it looks like I need to dig deeper on the `state` and figure out the other defects but that seems unrelated to the original problem as updating `zod` has fixed that. I'll run further tests to ensure it's playing nicely with everything else :)
Author
Owner

@ddewaele commented on GitHub (Jul 26, 2025):

For the people experiencing this issue with Tavily, be aware that langchainjs has a resolution set to zod ^3.25.32

At the time of writing this is currently picking up 3.25.76 that is causing this performance issue.

If you downgrade to 3.25.67 the issue is fixed.

You can do this by setting the following overrides in your package.json

  "overrides": {
    "zod": "3.25.67"
  }
@ddewaele commented on GitHub (Jul 26, 2025): For the people experiencing this issue with Tavily, be aware that langchainjs has a resolution set to zod `^3.25.32` At the time of writing this is currently picking up `3.25.76` that is causing this performance issue. If you downgrade to `3.25.67` the issue is fixed. You can do this by setting the following overrides in your package.json ``` "overrides": { "zod": "3.25.67" } ```
Author
Owner

@philhradecs commented on GitHub (Jul 26, 2025):

@philhradecs : it is related to this zod dependency in @langchain/tavily

https://github.com/langchain-ai/langchainjs/blob/main/libs/langchain-tavily/package.json#L85

Version 4 of zod speed things up considerably.

As soon as you start using the new tavily search in @langchain/tavily it will become very slow.

The older community version of tavily search used by create-agent-chat-app did not use zod and also doesn't get a lot of love (last update 3 months ago)

Thank you @nigel-daniels for looking into this and for taking the time to share your findings!
I will keep an eye out for langchain/tavily updates and use the zod override until then.

"overrides": {
    "@langchain/core": "^0.3.66",
    "zod": "3.25.67"
}
@philhradecs commented on GitHub (Jul 26, 2025): > [@philhradecs](https://github.com/philhradecs) : it is related to this zod dependency in @langchain/tavily > > https://github.com/langchain-ai/langchainjs/blob/main/libs/langchain-tavily/package.json#L85 > > Version 4 of zod speed things up considerably. > > As soon as you start using the new tavily search in @langchain/tavily it will become very slow. > > The older community version of tavily search used by [create-agent-chat-app](https://github.com/langchain-ai/create-agent-chat-app) did not use zod and also doesn't get a lot of love (last update 3 months ago) Thank you @nigel-daniels for looking into this and for taking the time to share your findings! I will keep an eye out for langchain/tavily updates and use the zod override until then. ``` "overrides": { "@langchain/core": "^0.3.66", "zod": "3.25.67" } ```
Author
Owner

@AndonMitev commented on GitHub (Aug 6, 2025):

Hey I'm also experiencing the same problem having latest version of zod:

Packages:

"@langchain/community": "^0.3.49",
    "@langchain/core": "^0.3.66",
    "@langchain/langgraph": "^0.3.12",
    "@langchain/openai": "^0.6.3",
    "@langchain/textsplitters": "^0.1.0",
    "@mendable/firecrawl-js": "^1.29.3",
    "@supabase/supabase-js": "^2.53.0",
    "@tavily/core": "^0.5.10",
    "cheerio": "^1.1.2",
    "dotenv": "^17.2.0",
    "express": "^5.1.0",
    "langchain": "^0.3.30",
    "playwright": "^1.54.2",
    "zod": "^4.0.10"

Graph:

import {
  Annotation,
  Command,
  END,
  START,
  StateGraph,
} from '@langchain/langgraph';
import { DocumentInterface } from '@langchain/core/documents';
import { ChatOpenAI } from '@langchain/openai';
import { HumanMessage, SystemMessage } from '@langchain/core/messages';
import { vectorStore } from '../../config/clients/Supabase';
import { tool } from '@langchain/core/tools';
import { ToolNode } from '@langchain/langgraph/prebuilt';
import { z } from 'zod';

const RAGAnnotation = Annotation.Root({
  context: Annotation<DocumentInterface[]>(),
  rawQuestion: Annotation<string>({
    default: () => 'tell me how to view cast using miniapps sdk',
    reducer: (prev, next) => next,
  }),
  aiQuestion: Annotation<string>(),
  rawAnswer: Annotation<string>(),
  answer: Annotation<string>(),
});

const llm = new ChatOpenAI({
  model: 'gpt-4o-mini',
  temperature: 0,
});

const searchTool = tool(
  async (aiQuestion: string) => {
    console.log('🔍 Searching for:', aiQuestion);
    const result = await vectorStore.similaritySearch(aiQuestion, 4);
    console.log('🔍 Result:', result);

    return {
      rawAnswer: 'test',
    };
  },
  {
    name: 'search',
    description:
      'Search the vector store for relevant documents related to the question',
    schema: z.object({
      aiQuestion: z.string(),
    }),
  },
);

const toolNode = new ToolNode([searchTool]);

const questionImprovementNode = async (state: typeof RAGAnnotation.State) => {
  console.log('🔍 Raw Question:', state.rawQuestion);
  const result = await llm.invoke([
    new SystemMessage(
      `
        You are an AI assistant that helps improve user questions for semantic search.

        Your task is to slightly rewrite a developer's question about the Farcaster Mini Apps SDK to make it more suitable for a vector database similarity search.

        Guidelines:
        - Do NOT change the meaning of the question.
        - If the original question is already clear and specific, return it as-is.
        - Do NOT answer the question.
        - Do NOT invent information or add unrelated topics.

        Only return the improved version of the user's question.
    `,
    ),
    new HumanMessage(state.rawQuestion),
  ]);

  const aiQuestion = result.content;

  console.log('🔍 Raw Question:', state.rawQuestion);
  console.log('🔍 AI Question:', aiQuestion);

  return {
    aiQuestion: aiQuestion.toString(),
  };
};


const builder = new StateGraph(RAGAnnotation)
  .addNode('questionImprovementNode', questionImprovementNode)
  .addNode('toolNode', toolNode)
  .addEdge(START, 'questionImprovementNode')
  .addEdge('questionImprovementNode', 'toolNode')
  .addEdge('toolNode', END);

export const ragCompiledGraph = builder.compile();

I'm noticing that the issue only occurs when toolNode is added to the graph. Everything works fine when I use only questionImprovementNode. I'm using the latest version of Zod, so I'm not sure what could be causing this. 🙏

@AndonMitev commented on GitHub (Aug 6, 2025): Hey I'm also experiencing the same problem having latest version of zod: Packages: ``` "@langchain/community": "^0.3.49", "@langchain/core": "^0.3.66", "@langchain/langgraph": "^0.3.12", "@langchain/openai": "^0.6.3", "@langchain/textsplitters": "^0.1.0", "@mendable/firecrawl-js": "^1.29.3", "@supabase/supabase-js": "^2.53.0", "@tavily/core": "^0.5.10", "cheerio": "^1.1.2", "dotenv": "^17.2.0", "express": "^5.1.0", "langchain": "^0.3.30", "playwright": "^1.54.2", "zod": "^4.0.10" ``` Graph: ``` import { Annotation, Command, END, START, StateGraph, } from '@langchain/langgraph'; import { DocumentInterface } from '@langchain/core/documents'; import { ChatOpenAI } from '@langchain/openai'; import { HumanMessage, SystemMessage } from '@langchain/core/messages'; import { vectorStore } from '../../config/clients/Supabase'; import { tool } from '@langchain/core/tools'; import { ToolNode } from '@langchain/langgraph/prebuilt'; import { z } from 'zod'; const RAGAnnotation = Annotation.Root({ context: Annotation<DocumentInterface[]>(), rawQuestion: Annotation<string>({ default: () => 'tell me how to view cast using miniapps sdk', reducer: (prev, next) => next, }), aiQuestion: Annotation<string>(), rawAnswer: Annotation<string>(), answer: Annotation<string>(), }); const llm = new ChatOpenAI({ model: 'gpt-4o-mini', temperature: 0, }); const searchTool = tool( async (aiQuestion: string) => { console.log('🔍 Searching for:', aiQuestion); const result = await vectorStore.similaritySearch(aiQuestion, 4); console.log('🔍 Result:', result); return { rawAnswer: 'test', }; }, { name: 'search', description: 'Search the vector store for relevant documents related to the question', schema: z.object({ aiQuestion: z.string(), }), }, ); const toolNode = new ToolNode([searchTool]); const questionImprovementNode = async (state: typeof RAGAnnotation.State) => { console.log('🔍 Raw Question:', state.rawQuestion); const result = await llm.invoke([ new SystemMessage( ` You are an AI assistant that helps improve user questions for semantic search. Your task is to slightly rewrite a developer's question about the Farcaster Mini Apps SDK to make it more suitable for a vector database similarity search. Guidelines: - Do NOT change the meaning of the question. - If the original question is already clear and specific, return it as-is. - Do NOT answer the question. - Do NOT invent information or add unrelated topics. Only return the improved version of the user's question. `, ), new HumanMessage(state.rawQuestion), ]); const aiQuestion = result.content; console.log('🔍 Raw Question:', state.rawQuestion); console.log('🔍 AI Question:', aiQuestion); return { aiQuestion: aiQuestion.toString(), }; }; const builder = new StateGraph(RAGAnnotation) .addNode('questionImprovementNode', questionImprovementNode) .addNode('toolNode', toolNode) .addEdge(START, 'questionImprovementNode') .addEdge('questionImprovementNode', 'toolNode') .addEdge('toolNode', END); export const ragCompiledGraph = builder.compile(); ``` I'm noticing that the issue only occurs when toolNode is added to the graph. Everything works fine when I use only questionImprovementNode. I'm using the latest version of Zod, so I'm not sure what could be causing this. 🙏
Author
Owner

@ddewaele commented on GitHub (Aug 6, 2025):

@AndonMitev because LangChainJS is pinning the version the LangChainJS components (like toolNode) will use the zod 3 version that causes the slowdown.

Fact that you have zod4 in your package.json does not change that.
Zod4 will only be used in your components and dependencies that don't explicitly pin it to a certain version

@ddewaele commented on GitHub (Aug 6, 2025): @AndonMitev because LangChainJS is pinning the version the LangChainJS components (like toolNode) will use the zod 3 version that causes the slowdown. Fact that you have zod4 in your package.json does not change that. Zod4 will only be used in your components and dependencies that don't explicitly pin it to a certain version
Author
Owner

@saad-horizontal commented on GitHub (Aug 11, 2025):

Same issue, tried overriding zod version to "3.25.67" as well but no luck.

@saad-horizontal commented on GitHub (Aug 11, 2025): Same issue, tried overriding zod version to "3.25.67" as well but no luck.
Author
Owner

@joofsh commented on GitHub (Oct 1, 2025):

Also experiencing this issue. Not using tavily though if anyone has other ideas

@joofsh commented on GitHub (Oct 1, 2025): Also experiencing this issue. Not using tavily though if anyone has other ideas
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#306