I am trying to test out Langsmith by running it with a simple example, with a new key created with my personal account. I have double checked that I copy and pasted the key properly.
Hi @nhuang , my LangChain training participants sometimes hit this issue on newly created accounts and keys (personal key on the default workspace). Is there some security safeguard that kicks in somehow? I don’t hit this issue on my “older” key.
If you create the setup manually, the project needs to be created first in the LangSmith dashboard, and only then should the API key be generated and used. If the project doesn’t already exist, LangSmith can return 403 / multipart ingest errors even when an API key is configured.
What worked for me:
Manually create the project in the LangSmith UI
Generate the API key after that
Set LANGCHAIN_PROJECT to the created project name
Run the code again
Once I followed this order, tracing and multipart ingest worked correctly. This requirement isn’t very obvious, so documenting it could help avoid confusion for new users.