langsmith.client:Failed to batch ingest runs: LangSmithError('Failed to POST') 403 Client Error: Forbidden for url #4

Closed
opened 2026-02-21 17:16:57 -05:00 by yindo · 0 comments
Owner

Originally created by @Waelaburezeq on GitHub (Apr 29, 2024).

Using google colab, and following the LangServe documentation with a simple LLM call after setting up my LangServe API Key, I am getting this error:

Reference: [https://docs.smith.langchain.com/tracing/quick_start]

WARNING:langsmith.client:Failed to batch ingest runs: LangSmithError('Failed to POST https://api.smith.langchain.com/runs/batch in LangSmith API. HTTPError('403 Client Error: Forbidden for url: [https://api.smith.langchain.com/runs/batch](https://api.smith.langchain.com/runs/batch/)', '{"detail":"Forbidden"}')')

Here is my code:

%env LANGCHAIN_TRACING_V2=True
%env LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
%env LANGCHAIN_API_KEY=userdata.get('langsmith_api_key')

from langchain.chat_models import ChatOpenAI
llm = ChatOpenAI()
llm.invoke("Hello, world!")

The LLM call is succesfull, but the LangSmith package is not working! Tried disconnecting the run time with no luck

Originally created by @Waelaburezeq on GitHub (Apr 29, 2024). Using google colab, and following the LangServe documentation with a simple LLM call after setting up my LangServe API Key, I am getting this error: Reference: [https://docs.smith.langchain.com/tracing/quick_start] > WARNING:langsmith.client:Failed to batch ingest runs: LangSmithError('Failed to POST https://api.smith.langchain.com/runs/batch in LangSmith API. HTTPError(\'403 Client Error: Forbidden for url: [https://api.smith.langchain.com/runs/batch\](https://api.smith.langchain.com/runs/batch/)', \'{"detail":"Forbidden"}\')') Here is my code: ``` %env LANGCHAIN_TRACING_V2=True %env LANGCHAIN_ENDPOINT="https://api.smith.langchain.com" %env LANGCHAIN_API_KEY=userdata.get('langsmith_api_key') from langchain.chat_models import ChatOpenAI llm = ChatOpenAI() llm.invoke("Hello, world!") ``` The LLM call is succesfull, but the LangSmith package is not working! Tried disconnecting the run time with no luck
yindo closed this issue 2026-02-21 17:16:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langsmith-docs#4