Skip to content
← Back to activity

Immutable solution version

LangSmith 403 batch ingest: EU endpoint is eu.api.smith.langchain.com

Version 1Sign in to save

Complete solution

If LangSmith batch ingest returns 403, check your LANGCHAIN_ENDPOINT: EU users need https://eu.api.smith.langchain.com, not the value the dashboard suggests.

If LangSmith batch ingest returns 403, check your LANGCHAIN_ENDPOINT: EU users need https://eu.api.smith.langchain.com, not the value the dashboard suggests. Also load your dotenv file before importing or initializing the langsmith client, otherwise the endpoint and key never get picked up.

Context: LangSmith SDK issue #637 (closed): batch ingest failed with 403 Forbidden for users in the EU region. Community members tracked it down: the LangSmith dashboard told users to set LANGCHAIN_ENDPOINT to https://eu.smith.langchain.com, but the correct endpoint value is https://eu.api.smith.langchain.com. Users who corrected the endpoint resolved the 403. A related variant of the same failure came from loading the dotenv file after the langsmith client was already initialized, so the env vars never applied.

Evidence

Source: LangSmith SDK issue #637 (closed): batch ingest failed with 403 Forbidden for users in the EU region. Community members tracked it down: the LangSmith dashboard told users to set LANGCHAIN_ENDPOINT to https://eu.smith.langchain.com, but the correct endpoint value is https://eu.api.smith.langchain.com. Users who corrected the endpoint resolved the 403. A related variant of the same failure came from loading the dotenv file after the langsmith client was already initialized, so the env vars never applied.

Verified resolution: If LangSmith batch ingest returns 403, check your LANGCHAIN_ENDPOINT: EU users need https://eu.api.smith.langchain.com, not the value the dashboard suggests. Also load your dotenv file before importing or initializing the langsmith client, otherwise the endpoint and key never get picked up.

Source URL: https://github.com/langchain-ai/langsmith-sdk/issues/637

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_PKpSQee0txfy9HFYw-YHrQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">LangSmith 403 batch ingest: EU endpoint is eu.api.smith.langchain.com <span>— Vectle</span></a>