chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Error message when running the LangChain integration demo

Open vemonet opened this issue 11 months ago • 4 comments

Describe the bug Using the langgraph code from this page: https://docs.chainlit.io/integrations/langchain

It works but the following line is spammed more than a 100 times in the terminal where I run the app:

2025-02-14 15:21:37 - Error in callback coroutine: TracerException('No indexed run ID 53a2d25b-b886-4308-84de-2a788d569579.')

To Reproduce Steps to reproduce the behavior:

  1. Follow the demo instructions. I used uv to run the script

Expected behavior The starting code shared should be sane, with clean logs, no spammed of warning. And if you have to send a warning send it once ideally

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser firefox

vemonet avatar Feb 14 '25 14:02 vemonet

I am also having this error.

krsad avatar Feb 17 '25 07:02 krsad

It seems to come from cl.LangchainCallbackHandler()

I tried to set LANGCHAIN_TRACE_V2 to false to prevent sending info to langsmith but it did not help

I removed the callback handler because anyway the step details are not really understandable from a end user perspective, and the error message went away. Directly using async with cl.Step(name="some step") as step: is much nicer

I searched for the words from the error message in class LangchainTracer but could not find anything, so I guess it's implemented somewhere else. It seems like it is trying to send some stuff to langsmith or something, it would be nice have this "run indexing" feature disabled by default, or to be able to enable/disable it when instantiating the LangchainCallbackHandler()

vemonet avatar Feb 25 '25 10:02 vemonet

I am also seeing this error.

Simon-Stone avatar Apr 10 '25 23:04 Simon-Stone

I was able to get rid of this by adding the following line:

 cb._schema_format = "original+chat"

This is necessary to get through this check. It's not clear to me, though, what any of this means.

Simon-Stone avatar Apr 11 '25 01:04 Simon-Stone

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Jul 26 '25 02:07 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Aug 02 '25 02:08 github-actions[bot]