Skip to content

Un-awaited (background) LLM call triggers invalid 'dotted_order' during LangSmith trace #9077

@yukukotani

Description

@yukukotani

Checked other resources

  • This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
  • I added a very descriptive title to this issue.
  • I searched the LangChain.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 LangChain.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

https://github.com/yuku-sandbox/langsmith-dotted-order-repro

Error Message and Stack Trace (if applicable)

Failed to Failed to send multipart request. Received status [400]: Bad Request. Message: {"error":"Bad request: invalid 'dotted_order': dotted_order must contain at least two parts for child runs for run_id:0c84e859-506a-44f3-9424-5e5fd10e0c75 trace_id:0c84e859-506a-44f3-9424-5e5fd10e0c75 dotted_order:20250930T162253554001Z0c84e859-506a-44f3-9424-5e5fd10e0c75 parent_run_id:a54cdf92-665b-41fd-b328-ac6291b94a7d"}

Context: trace=0c84e859-506a-44f3-9424-5e5fd10e0c75,id=0c84e859-506a-44f3-9424-5e5fd10e0c75

Description

When an LLM is called without await inside LangGraph nodes, the parent run may have already disappeared from the memory by the time the LLM call is actually executed, which leads the invalid format of dotted_order.

Related to #8607

System Info

$  bun pm ls | grep langchain
[0.32ms] ".env"
├── @langchain/[email protected]
├── @langchain/[email protected]
├── @langchain/[email protected]
├── [email protected]

$ node -v
v22.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions