Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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:... #2991

Open
4 tasks done
Layvier opened this issue Jan 10, 2025 · 0 comments

Comments

@Layvier
Copy link

Layvier commented 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant