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

error into feedback-examples/streamlit/main.py #255

Open
lordpba opened this issue Nov 26, 2024 · 0 comments
Open

error into feedback-examples/streamlit/main.py #255

lordpba opened this issue Nov 26, 2024 · 0 comments

Comments

@lordpba
Copy link

lordpba commented Nov 26, 2024

into the example:
feedback-examples/streamlit/main.py

I always receive error:

LangSmithAuthError: Authentication failed for /feedback. HTTPError('401 Client Error: Unauthorized for url: https://api.smith.langchain.com/feedback', '{"detail":"Invalid token"}')

(issue comes from line 110 of main.py)

Traceback:
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
exec(code, module.dict)
File "/teamspace/studios/this_studio/LS_chat_example.py", line 112, in
feedback_record = client.create_feedback(
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/langsmith/client.py", line 4353, in create_feedback
raise e
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/langsmith/client.py", line 4341, in create_feedback
self.request_with_retries(
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/langsmith/client.py", line 757, in request_with_retries
raise ls_utils.LangSmithAuthError(

my .env for LangSmith is all correct, it works on other files, just this from this example has this issue? Why?
Thanks!

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