Failed to batch ingest runs: langsmith.utils.LangSmithError: Failed to POST https://api.smith.langchain.com/runs/batch in LangSmith API. HTTPError('422 Client Error: unknown for url: https://api.smith.langchain.com/runs/batch', '{"detail":"Invalid iden… #394

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

Originally created by @Layvier on GitHub (Jan 10, 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

LANGCHAIN_TRACING_V2="true"
LANGCHAIN_API_KEY="<key starting with lsv2>"
LANGCHAIN_PROJECT="my-project"


// "langgraph.json"

{
  "dependencies": ["."],
  "graphs": {
    "telescope_v4": "./path_to_graph/graph.py:app"
  },
  "env": "./.env"
}

Error Message and Stack Trace (if applicable)

Failed to batch ingest runs: langsmith.utils.LangSmithError: Failed to POST https://api.smith.langchain.com/runs/batch in LangSmith API. HTTPError('422 Client Error: unknown for url: https://api.smith.langchain.com/runs/batch', '{"detail":"Invalid identifiers received for run_id:2ff3004e-72d4-42ff-a4b1-9c8111a63ebf trace_id:UUID(\'1efcf892-f23f-6856-8e1b-96da72ff5d2a\') dotted_order:20250110T192918543695Z1efcf892-f23f-6856-8e1b-96da72ff5d2a.20250110T192918579965Z16f0f4e7-6bd4-4ea1-b6d2-b4652d1b7122.20250110T192918598421Z76086b6b-2754-4bf4-a06b-35886f709bbf.20250110T192919677228Z2ff3004e-72d4-42ff-a4b1-9c8111a63ebf parent_run_id:76086b6b-2754-4bf4-a06b-35886f709bbf"}')

Description

Hello,

I'm using Langgraph and langgraph-cli to develop an agent, but I have issues when looking for traces in Langsmith. The batch ingest calls for run traces all fail, and I checked the api key 10 times but I still get the issue. I increased my usage limits as well, to no avail.
This issue seems to come from langgraph-cli, since from the same .env I have a fastapi server using langgraph (another graph), and this one does send logs to langsmith properly.

Any ideas what could be the issue?

Cheers, Olivier

System Info

System Information

OS: Darwin
OS Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000
Python Version: 3.11.9 (main, Sep 23 2024, 23:17:37) [Clang 14.0.3 (clang-1403.0.22.14.1)]

Package Information

langchain_core: 0.3.29
langchain: 0.3.14
langchain_community: 0.3.1
langsmith: 0.1.125
langchain_anthropic: 0.2.1
langchain_google_vertexai: 2.0.1
langchain_openai: 0.2.1
langchain_text_splitters: 0.3.5
langgraph_api: 0.0.15
langgraph_cli: 0.1.65
langgraph_license: Installed. No version info available.
langgraph_sdk: 0.1.48
langgraph_storage: Installed. No version info available.

Optional packages not installed

langserve

Other Dependencies

aiohttp: 3.10.5
anthropic: 0.34.2
anthropic[vertexai]: Installed. No version info available.
async-timeout: 4.0.3
click: 8.1.7
cryptography: 43.0.3
dataclasses-json: 0.5.7
defusedxml: 0.7.1
google-cloud-aiplatform: 1.67.1
google-cloud-storage: 2.17.0
httpx: 0.27.2
httpx-sse: 0.4.0
jsonpatch: 1.33
jsonschema-rs: 0.25.0
langchain-mistralai: Installed. No version info available.
langgraph: 0.2.61
langgraph-checkpoint: 2.0.9
numpy: 1.25.2
openai: 1.46.0
orjson: 3.10.7
packaging: 23.2
pydantic: 2.9.2
pydantic-settings: 2.5.2
pyjwt: 2.10.1
python-dotenv: 0.21.1
PyYAML: 6.0.2
requests: 2.32.3
SQLAlchemy: 2.0.35
sse-starlette: 2.1.3
starlette: 0.38.6
structlog: 24.4.0
tenacity: 8.5.0
tiktoken: 0.7.0
typing-extensions: 4.12.2
uvicorn: 0.30.6
watchfiles: 1.0.3

Originally created by @Layvier on GitHub (Jan 10, 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 LANGCHAIN_TRACING_V2="true" LANGCHAIN_API_KEY="<key starting with lsv2>" LANGCHAIN_PROJECT="my-project" // "langgraph.json" { "dependencies": ["."], "graphs": { "telescope_v4": "./path_to_graph/graph.py:app" }, "env": "./.env" } ``` ### Error Message and Stack Trace (if applicable) ```shell Failed to batch ingest runs: langsmith.utils.LangSmithError: Failed to POST https://api.smith.langchain.com/runs/batch in LangSmith API. HTTPError('422 Client Error: unknown for url: https://api.smith.langchain.com/runs/batch', '{"detail":"Invalid identifiers received for run_id:2ff3004e-72d4-42ff-a4b1-9c8111a63ebf trace_id:UUID(\'1efcf892-f23f-6856-8e1b-96da72ff5d2a\') dotted_order:20250110T192918543695Z1efcf892-f23f-6856-8e1b-96da72ff5d2a.20250110T192918579965Z16f0f4e7-6bd4-4ea1-b6d2-b4652d1b7122.20250110T192918598421Z76086b6b-2754-4bf4-a06b-35886f709bbf.20250110T192919677228Z2ff3004e-72d4-42ff-a4b1-9c8111a63ebf parent_run_id:76086b6b-2754-4bf4-a06b-35886f709bbf"}') ``` ### Description Hello, I'm using Langgraph and langgraph-cli to develop an agent, but I have issues when looking for traces in Langsmith. The batch ingest calls for run traces all fail, and I checked the api key 10 times but I still get the issue. I increased my usage limits as well, to no avail. This issue seems to come from langgraph-cli, since from the same .env I have a fastapi server using langgraph (another graph), and this one does send logs to langsmith properly. Any ideas what could be the issue? Cheers, Olivier ### System Info System Information ------------------ > OS: Darwin > OS Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 > Python Version: 3.11.9 (main, Sep 23 2024, 23:17:37) [Clang 14.0.3 (clang-1403.0.22.14.1)] Package Information ------------------- > langchain_core: 0.3.29 > langchain: 0.3.14 > langchain_community: 0.3.1 > langsmith: 0.1.125 > langchain_anthropic: 0.2.1 > langchain_google_vertexai: 2.0.1 > langchain_openai: 0.2.1 > langchain_text_splitters: 0.3.5 > langgraph_api: 0.0.15 > langgraph_cli: 0.1.65 > langgraph_license: Installed. No version info available. > langgraph_sdk: 0.1.48 > langgraph_storage: Installed. No version info available. Optional packages not installed ------------------------------- > langserve Other Dependencies ------------------ > aiohttp: 3.10.5 > anthropic: 0.34.2 > anthropic[vertexai]: Installed. No version info available. > async-timeout: 4.0.3 > click: 8.1.7 > cryptography: 43.0.3 > dataclasses-json: 0.5.7 > defusedxml: 0.7.1 > google-cloud-aiplatform: 1.67.1 > google-cloud-storage: 2.17.0 > httpx: 0.27.2 > httpx-sse: 0.4.0 > jsonpatch: 1.33 > jsonschema-rs: 0.25.0 > langchain-mistralai: Installed. No version info available. > langgraph: 0.2.61 > langgraph-checkpoint: 2.0.9 > numpy: 1.25.2 > openai: 1.46.0 > orjson: 3.10.7 > packaging: 23.2 > pydantic: 2.9.2 > pydantic-settings: 2.5.2 > pyjwt: 2.10.1 > python-dotenv: 0.21.1 > PyYAML: 6.0.2 > requests: 2.32.3 > SQLAlchemy: 2.0.35 > sse-starlette: 2.1.3 > starlette: 0.38.6 > structlog: 24.4.0 > tenacity: 8.5.0 > tiktoken: 0.7.0 > typing-extensions: 4.12.2 > uvicorn: 0.30.6 > watchfiles: 1.0.3
yindo closed this issue 2026-02-20 17:39:53 -05:00
Author
Owner

@Layvier commented on GitHub (Jan 12, 2025):

seem like it got resolved by just updating all the dependencies, I'll close the issue

@Layvier commented on GitHub (Jan 12, 2025): seem like it got resolved by just updating all the dependencies, I'll close the issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#394