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

Trouble Retrieving All Runs from Langsmith API: Receiving 405 Error Response #553

Open
NeethithevanR opened this issue Mar 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@NeethithevanR
Copy link

NeethithevanR commented Mar 26, 2024

Issue with current documentation:

I am trying to retrieve all runs from Langsmith through the API, and I have also attempted using the Langsmith client. However, I am receiving a 405 error as a response.

Idea or request for content:

No response

@hinthornw
Copy link
Collaborator

Do you have a code snippet for what you are using when you get this error?
Are you targeting the public https://api.smith.langchain.com endpoint or are you using a self-hosted instance?

@NeethithevanR
Copy link
Author

NeethithevanR commented Mar 26, 2024

@hinthornw, I'm using the public endpoint (https://api.smith.langchain.com/). Please check the code snippet below.

code snippet:
from langsmith import Client
os.environ["LANGCHAIN_TRACING_V2"] = "true"
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
os.environ["LANGCHAIN_API_KEY"] = ""
client = Client()
runs = client.list_runs(project_name="default")

@hinthornw
Copy link
Collaborator

How frequent are you running into this? Is it on every call? (i'm having a hard time reproducing)

@hinthornw hinthornw added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants