Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Authentication failed (401) for https://api.smith.langchain.com/runs/multipart #1201

Open
leucir opened this issue Nov 9, 2024 · 0 comments

Comments

@leucir
Copy link

leucir commented Nov 9, 2024

Issue you'd like to raise.

When executing invoke() the following error happens:

Failed to multipart ingest runs: 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":"Using legacy API key. Please generate a new API key."}')trace=2ea67b21-18ee-4c72-9e2e-7630faf2c7a0,id=2ea67b21-18ee-4c72-9e2e-7630faf2c7a0; trace=2ea67b21-18ee-4c72-9e2e-7630faf2c7a0,id=8ec43343-85b0-4043-b2e4-497ceb25f898; trace=2ea67b21-18ee-4c72-9e2e-7630faf2c7a0,id=11243325-4863-4264-9bc8-ff469b9f113b

I've created at least 2 new API keys, but the error persists.

The following environment variables are set:

LANGSMITH_API_KEY="lsv2_pt_nonononononononon"
LANGSMITH_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_TRACING_V2="true"
LANGCHAIN_PROJECT="project_bond_101"

To be precise, it worked once, and then failed after that first execution.

pip list | grep lang returns:

langchain                                0.3.7
langchain-community                      0.3.5
langchain-core                           0.3.15
langchain-openai                         0.2.5
langchain-text-splitters                 0.3.2
langgraph                                0.2.45
langgraph-checkpoint                     2.0.2
langgraph-checkpoint-sqlite              2.0.1
langgraph-sdk                            0.1.35
langsmith                                0.1.142

Suggestion:

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant