Troubleshoot LangSmith logging issues #18226
-
Checked other resources
Commit to Help
Example CodeAccording to the guide, I've done this
LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_API_KEY="ls__xxx"
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
🤖 Hey @seanmavley! Great to see you diving into another challenge with LangChain. How's everything going on your end? Based on the information you've provided and the context from the LangChain repository, here are some steps you can take to troubleshoot the issue:
If the above steps do not resolve the issue, review the LangSmith documentation for any additional configuration steps or known issues. If the problem persists, consider reaching out to LangSmith support at support@langchain.dev with details of your setup and the steps you have taken to troubleshoot. As for the order of setting environment variables, I couldn't find any specific information in the LangChain repository. However, in general, the order of setting environment variables should not matter as long as they are all set before they are used in your code. I hope this helps! If you have any other questions or need further clarification, feel free to ask. Sources
|
Beta Was this translation helpful? Give feedback.
-
My bad. If you're using something like systemd to run your process such as gunicorn, you'll need to declare the environments in there like below:
|
Beta Was this translation helpful? Give feedback.
-
WARNING:langsmith.client:Failed to send compressed multipart ingest: langsmith.utils.LangSmithAuthError: Authentication failed for https://api.smith.langchain.com/runs/multipart. HTTPError('401 Client Error: Unauthorized for url: https://api.smith.langchain.com/runs/multipart', '{"detail":"Invalid token"}') Search TaviliSearch PubmedWARNING:langsmith.client:Failed to send compressed multipart ingest: langsmith.utils.LangSmithAuthError: Authentication failed for https://api.smith.langchain.com/runs/multipart. HTTPError('401 Client Error: Unauthorized for url: https://api.smith.langchain.com/runs/multipart', '{"detail":"Invalid token"}') Search Semantic ScholarWARNING:langsmith.client:Failed to send compressed multipart ingest: langsmith.utils.LangSmithAuthError: Authentication failed for https://api.smith.langchain.com/runs/multipart. HTTPError('401 Client Error: Unauthorized for url: https://api.smith.langchain.com/runs/multipart', '{"detail":"Invalid token"}') Search WikipediaWARNING:langsmith.client:Failed to send compressed multipart ingest: langsmith.utils.LangSmithAuthError: Authentication failed for https://api.smith.langchain.com/runs/multipart. HTTPError('401 Client Error: Unauthorized for url: https://api.smith.langchain.com/runs/multipart', '{"detail":"Invalid token"}') Generate AnswerWARNING:langsmith.client:Failed to send compressed multipart ingest: langsmith.utils.LangSmithAuthError: Authentication failed for https://api.smith.langchain.com/runs/multipart. HTTPError('401 Client Error: Unauthorized for url: https://api.smith.langchain.com/runs/multipart', '{"detail":"Invalid token"}') Routing MessagesGenerate QuestionWARNING:langsmith.client:Failed to send compressed multipart ingest: langsmith.utils.LangSmithAuthError: Authentication failed for https://api.smith.langchain.com/runs/multipart. HTTPError('401 Client Error: Unauthorized for url: https://api.smith.langchain.com/runs/multipart', '{"detail":"Invalid token"}') |
Beta Was this translation helpful? Give feedback.
My bad. If you're using something like systemd to run your process such as gunicorn, you'll need to declare the environments in there like below: