Hello everyone, 馃憢 I'm encountering an issue when trying to retrieve spans from a specific project using px.Client().get_spans_dataframe(project_name='Emvide-dev'). The error message indicates that the request method is not allowed for the URL https://arize-phoenix.onrender.com/v1/traces/v1/spans?project_name=Emvide-dev&project-name=Emvide-dev. Could this be due to an incorrect HTTP method being used, a misconfigured API endpoint, or an issue with authentication? How can I resolve this?
The error message you're encountering suggests that the HTTP method being used is not allowed for the specified URL. This could be due to a misconfiguration in the API endpoint or an issue with the HTTP method being used in the request. According to the Phoenix API documentation, the get_spans_dataframe method should be used with the correct endpoint and method.Ensure that the endpoint is correctly configured and that the px.Client is using the correct base URL. The endpoint should not include /v1/traces in the URL when initializing the px.Client. Instead, it should be the base URL of the Phoenix server. Additionally, verify that the API key is correctly set in the environment variables if authentication is required. You can set the API key using os.environ["PHOENIX_CLIENT_HEADERS"] = "api_key=<YOUR_API_KEY](https://docs.arize.com/phoenix/tracing/how-to-tracing/setup-tracing-python#%3AR1kd9uu8qfkvfa%3A) " as shown in the [Phoenix tracing setup guide>.Would you like more detailed guidance on setting up the client or troubleshooting the issue? Sources:
- Phoenix API documentation
- Phoenix tracing setup guide
馃挕聽Hint: Mention RunLLM in the thread for followups.
I have already added But it not working
How is your base url configured? I think I see an extra /v1 in the logged url
Can you try setting?
os.environ["PHOENIX_COLLECTOR_ENDPOINT"] = "https://arize-phoenix.onrender.com"
It's working! Thank you so much!
