param mismatch during langgraph-cli dev mode #395

Closed
opened 2026-02-20 17:39:53 -05:00 by yindo · 2 comments
Owner

Originally created by @kingsotn-twelve on GitHub (Jan 9, 2025).

Checked other resources

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

Example Code

langgraph dev --config langgraph.json --host 127.0.0.1 --port 3000 --debug-port 5678 --no-browser

Error Message and Stack Trace (if applicable)

File "python3.11/site-packages/langgraph_cli/cli.py", line 608, in dev
    run_server(
  File "python3.11/site-packages/langgraph_api/cli.py", line 221, in run_server
    uvicorn.run(
TypeError: run() got an unexpected keyword argument 'auth'

Description

langgraphcli=0.1.65 has mismatch type params for the run_server() function inside dev()

commenting out the auth param fixes this error.

but this is the second time i'm running into param mismatches. this shouldn't happen every time.

System Info

System Information

OS: Darwin
OS Version: Darwin Kernel Version 23.6.0: Thu Sep 12 23:35:10 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6030
Python Version: 3.11.11 (main, Dec 6 2024, 21:09:50) [Clang 18.1.8 ]

Package Information

langchain_core: 0.3.24
langchain: 0.3.7
langsmith: 0.1.147
langchain_openai: 0.2.9
langchain_text_splitters: 0.3.2
langgraph_api: 0.0.7
langgraph_cli: 0.1.65
langgraph_license: Installed. No version info available.
langgraph_sdk: 0.1.44
langgraph_storage: Installed. No version info available.

Optional packages not installed

langserve

Other Dependencies

aiohttp: 3.10.8
async-timeout: Installed. No version info available.
click: 8.1.8
cryptography: 43.0.3
httpx: 0.28.1
jsonpatch: 1.33
jsonschema-rs: 0.25.1
langgraph: 0.2.59
langgraph-checkpoint: 2.0.9
langsmith-pyo3: Installed. No version info available.
numpy: 1.26.4
openai: 1.55.3
orjson: 3.10.12
packaging: 24.2
pydantic: 2.10.3
pyjwt: 2.10.1
python-dotenv: 1.0.1
PyYAML: 6.0.2
requests: 2.32.3
requests-toolbelt: 1.0.0
SQLAlchemy: 2.0.35
sse-starlette: 2.1.3
starlette: 0.41.3
structlog: 24.4.0
tenacity: 8.5.0
tiktoken: 0.7.0
typing-extensions: 4.12.2
uvicorn: 0.32.1
watchfiles: 1.0.3

Originally created by @kingsotn-twelve on GitHub (Jan 9, 2025). ### Checked other resources - [X] This is a bug, not a usage question. For questions, please use GitHub Discussions. - [X] I added a clear and detailed title that summarizes the issue. - [X] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [X] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python langgraph dev --config langgraph.json --host 127.0.0.1 --port 3000 --debug-port 5678 --no-browser ``` ### Error Message and Stack Trace (if applicable) ```shell File "python3.11/site-packages/langgraph_cli/cli.py", line 608, in dev run_server( File "python3.11/site-packages/langgraph_api/cli.py", line 221, in run_server uvicorn.run( TypeError: run() got an unexpected keyword argument 'auth' ``` ### Description langgraphcli=0.1.65 has mismatch type params for the `run_server()` function inside `dev()` commenting out the auth param fixes this error. but this is the second time i'm running into param mismatches. this shouldn't happen every time. ### System Info System Information ------------------ > OS: Darwin > OS Version: Darwin Kernel Version 23.6.0: Thu Sep 12 23:35:10 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6030 > Python Version: 3.11.11 (main, Dec 6 2024, 21:09:50) [Clang 18.1.8 ] Package Information ------------------- > langchain_core: 0.3.24 > langchain: 0.3.7 > langsmith: 0.1.147 > langchain_openai: 0.2.9 > langchain_text_splitters: 0.3.2 > langgraph_api: 0.0.7 > langgraph_cli: 0.1.65 > langgraph_license: Installed. No version info available. > langgraph_sdk: 0.1.44 > langgraph_storage: Installed. No version info available. Optional packages not installed ------------------------------- > langserve Other Dependencies ------------------ > aiohttp: 3.10.8 > async-timeout: Installed. No version info available. > click: 8.1.8 > cryptography: 43.0.3 > httpx: 0.28.1 > jsonpatch: 1.33 > jsonschema-rs: 0.25.1 > langgraph: 0.2.59 > langgraph-checkpoint: 2.0.9 > langsmith-pyo3: Installed. No version info available. > numpy: 1.26.4 > openai: 1.55.3 > orjson: 3.10.12 > packaging: 24.2 > pydantic: 2.10.3 > pyjwt: 2.10.1 > python-dotenv: 1.0.1 > PyYAML: 6.0.2 > requests: 2.32.3 > requests-toolbelt: 1.0.0 > SQLAlchemy: 2.0.35 > sse-starlette: 2.1.3 > starlette: 0.41.3 > structlog: 24.4.0 > tenacity: 8.5.0 > tiktoken: 0.7.0 > typing-extensions: 4.12.2 > uvicorn: 0.32.1 > watchfiles: 1.0.3
yindo closed this issue 2026-02-20 17:39:53 -05:00
Author
Owner

@hinthornw commented on GitHub (Jan 9, 2025):

Upgrade your langgraph-api version.

pip install -U langgraph-api
@hinthornw commented on GitHub (Jan 9, 2025): Upgrade your `langgraph-api` version. ``` pip install -U langgraph-api ```
Author
Owner

@kingsotn-twelve commented on GitHub (Jan 9, 2025):

Upgrade your langgraph-api version.

pip install -U langgraph-api

yep my bad

@kingsotn-twelve commented on GitHub (Jan 9, 2025): > Upgrade your `langgraph-api` version. > > ``` > pip install -U langgraph-api > ``` yep my bad
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#395