You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the app is not allowed to send the interaction to langsmith.
File "/home/azureuser/anaconda3/envs/snowflake/lib/python3.8/site-packages/langsmith/utils.py", line 55, in raise_for_status_with_text
response.raise_for_status()
File "/home/azureuser/anaconda3/envs/snowflake/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 405 Client Error: Not Allowed for url: http://20.79.217.xxx/runs/3abf1f4c-2b48-4d1b-9628-979f7d12d9d5/share
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/azureuser/anaconda3/envs/snowflake/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.__dict__)
File "/home/azureuser/langsmith/main.py", line 126, in <module>
url = client.share_run(run.id)
File "/home/azureuser/anaconda3/envs/snowflake/lib/python3.8/site-packages/langsmith/client.py", line 831, in share_run
raise_for_status_with_text(response)
File "/home/azureuser/anaconda3/envs/snowflake/lib/python3.8/site-packages/langsmith/utils.py", line 57, in raise_for_status_with_text
raise ValueError(response.text) from e
ValueError: <html>
<head><title>405 Not Allowed</title></head>
<body>
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/1.24.0</center>
</body>
</html>
Also something that looks a bit odd is when I open the website, it's not showing me the projects
and i can't create a new one, keeps telling me that the field is required
what could I do, any hint is more than appreaciated
Suggestion:
No response
The text was updated successfully, but these errors were encountered:
dosubotbot
added
the
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
label
Aug 18, 2023
The "405 Not Allowed" error you're encountering typically occurs when the HTTP method you're trying to use is not supported by the server. In the context of the LangChain framework, this error might occur if the Azure endpoint you're trying to reach does not support the HTTP method used in the call method.
To resolve this issue, you should modify the call method in the AzureMLEndpointClient class to use the POST method. Here's how you can do it:
In this code, I added the method='POST' argument to the urllib.request.Request function to specify that the POST method should be used. This should resolve the "405 Not Allowed" error if it was caused by using the wrong HTTP method.
As for the share_run method in the Langsmith client, I wasn't able to find specific information about its function within the LangChain repository. It would be helpful if you could provide more details about the context in which this method is used.
Please try the suggested solution and let me know if it resolves your issue or if you need further assistance.
Issue you'd like to raise.
Hello, I'm trying to run langsmith locally, together with Azure OpenAi services.
I started langsmith in docker and it looks like below
And I'm running the chatbot from here https://github.com/langchain-ai/langsmith-cookbook/blob/main/feedback-examples/streamlit/README.md
Looks like the app is not allowed to send the interaction to langsmith.
Also something that looks a bit odd is when I open the website, it's not showing me the projects
and i can't create a new one, keeps telling me that the field is required
what could I do, any hint is more than appreaciated
Suggestion:
No response
The text was updated successfully, but these errors were encountered: