Error message when running the LangChain integration demo
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:
- Follow the demo instructions. I used
uvto 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
I am also having this error.
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()
I am also seeing this error.
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.
This issue is stale because it has been open for 14 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.