TypeError: Could not convert argument of type symbol to string. #1

Closed
opened 2026-02-16 04:16:53 -05:00 by yindo · 2 comments
Owner

Originally created by @ibbybuilds on GitHub (Mar 26, 2025).

OS: Windows 11

When starting Langgraph server through this command

$ npx @langchain/langgraph-cli@latest dev

I get this error:

TypeError: Could not convert argument of type symbol to string.
    at webidl.converters.DOMString (node:internal/deps/undici/undici:1977:15)
    at webidl.converters.ByteString (node:internal/deps/undici/undici:1982:35)
    at Object.record<ByteString, ByteString> (node:internal/deps/undici/undici:1894:30)
    at webidl.converters.HeadersInit (node:internal/deps/undici/undici:3424:67)
    at Object.ResponseInit (node:internal/deps/undici/undici:1951:21)
    at new Response (node:internal/deps/undici/undici:4412:34)
    at [getResponseCache] (file:///C:/Users/Muhammad.Ibrahim/AppData/Local/npm-cache/_npx/ac93fd5a1d18d949/node_modules/@hono/node-server/dist/index.mjs:235:36)
    at _Response.get (file:///C:/Users/Muhammad.Ibrahim/AppData/Local/npm-cache/_npx/ac93fd5a1d18d949/node_modules/@hono/node-server/dist/index.mjs:275:36)
    at set res [as res] (file:///C:/Users/Muhammad.Ibrahim/AppData/Local/npm-cache/_npx/ac93fd5a1d18d949/node_modules/hono/dist/context.js:76:18)
    at dispatch (file:///C:/Users/Muhammad.Ibrahim/AppData/Local/npm-cache/_npx/ac93fd5a1d18d949/node_modules/hono/dist/compose.js:38:21)

This is happening for threads path like

info:    ▪ --> POST /threads 500
info:    ▪ --> POST /threads/search 500

Whereas other paths are working fine:

info:    ▪ --> GET /assistants/fe096781-5601-53d2-b2f6-0d3403f7e9ca/subgraphs?recurse=true 200 
info:    ▪ --> GET /assistants/fe096781-5601-53d2-b2f6-0d3403f7e9ca/schemas 200 
Originally created by @ibbybuilds on GitHub (Mar 26, 2025). OS: Windows 11 When starting Langgraph server through this command `$ npx @langchain/langgraph-cli@latest dev` I get this error: ``` TypeError: Could not convert argument of type symbol to string. at webidl.converters.DOMString (node:internal/deps/undici/undici:1977:15) at webidl.converters.ByteString (node:internal/deps/undici/undici:1982:35) at Object.record<ByteString, ByteString> (node:internal/deps/undici/undici:1894:30) at webidl.converters.HeadersInit (node:internal/deps/undici/undici:3424:67) at Object.ResponseInit (node:internal/deps/undici/undici:1951:21) at new Response (node:internal/deps/undici/undici:4412:34) at [getResponseCache] (file:///C:/Users/Muhammad.Ibrahim/AppData/Local/npm-cache/_npx/ac93fd5a1d18d949/node_modules/@hono/node-server/dist/index.mjs:235:36) at _Response.get (file:///C:/Users/Muhammad.Ibrahim/AppData/Local/npm-cache/_npx/ac93fd5a1d18d949/node_modules/@hono/node-server/dist/index.mjs:275:36) at set res [as res] (file:///C:/Users/Muhammad.Ibrahim/AppData/Local/npm-cache/_npx/ac93fd5a1d18d949/node_modules/hono/dist/context.js:76:18) at dispatch (file:///C:/Users/Muhammad.Ibrahim/AppData/Local/npm-cache/_npx/ac93fd5a1d18d949/node_modules/hono/dist/compose.js:38:21) ``` This is happening for `threads` path like ``` info: ▪ --> POST /threads 500 info: ▪ --> POST /threads/search 500 ``` Whereas other paths are working fine: ``` info: ▪ --> GET /assistants/fe096781-5601-53d2-b2f6-0d3403f7e9ca/subgraphs?recurse=true 200 info: ▪ --> GET /assistants/fe096781-5601-53d2-b2f6-0d3403f7e9ca/schemas 200 ```
yindo closed this issue 2026-02-16 04:16:53 -05:00
Author
Owner

@dqbd commented on GitHub (Mar 28, 2025):

Hello! Would it be possible to share the version of NodeJS?

@dqbd commented on GitHub (Mar 28, 2025): Hello! Would it be possible to share the version of NodeJS?
Author
Owner

@ibbybuilds commented on GitHub (Mar 28, 2025):

@dqbd It was certainly a node version issue converting to v20.9.0 solved the issue for me.

@ibbybuilds commented on GitHub (Mar 28, 2025): @dqbd It was certainly a node version issue converting to `v20.9.0` solved the issue for me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs-api#1