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

[BUG] Failed to export batch code: 405, reason: Method Not Allowed #4529

Closed
taoari opened this issue Sep 5, 2024 · 4 comments
Closed

[BUG] Failed to export batch code: 405, reason: Method Not Allowed #4529

taoari opened this issue Sep 5, 2024 · 4 comments
Labels
bug Something isn't working cannot reproduce A bug that cannot be reproduced

Comments

@taoari
Copy link

taoari commented Sep 5, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. docker compose up allowing https://docs.arize.com/phoenix/deployment/docker
  2. run the following script (from https://docs.arize.com/phoenix/tracing/integrations-tracing/langchain):
from phoenix.otel import register

tracer_provider = register(
  project_name="my-llm-app", # Default is 'default'
  endpoint="http://localhost:6006",
)

from openinference.instrumentation.langchain import LangChainInstrumentor

LangChainInstrumentor().instrument(tracer_provider=tracer_provider)

from langchain_core.prompts import ChatPromptTemplate
from langchain_openai import ChatOpenAI

prompt = ChatPromptTemplate.from_template("{x} {y} {z}?").partial(x="why is", z="blue")
chain = prompt | ChatOpenAI(model_name="gpt-3.5-turbo")
print(chain.invoke(dict(y="sky")))

and got the following errors:

Failed to export batch code: 405, reason: Method Not Allowed
Failed to export batch code: 405, reason: Method Not Allowed
Failed to export batch code: 405, reason: Method Not Allowed

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. MacOS]
  • Notebook Runtime [e.g. Jupyter, Colab]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 0.0.1]

Additional context
Add any other context about the problem here (e.x. a link to a colab)

@taoari taoari added bug Something isn't working triage issues that need triage labels Sep 5, 2024
@github-project-automation github-project-automation bot moved this to 📘 Todo in phoenix Sep 5, 2024
@mikeldking
Copy link
Contributor

hey @taoari - it should be

tracer_provider = register(
  project_name="my-llm-app", # Default is 'default'
  endpoint="http://localhost:6006/v1/traces",
)

the route for HTTP is /v1/traces slug. Can you try this?

@mikeldking mikeldking added cannot reproduce A bug that cannot be reproduced and removed triage issues that need triage labels Sep 9, 2024
@mfmezger
Copy link

mfmezger commented Oct 8, 2024

it works with /v1/traces. 👍🏻 Maybe soemone can change here: https://docs.arize.com/phoenix/tracing/integrations-tracing/langchain in the docker tab and command line. Thank you! :).

@taoari
Copy link
Author

taoari commented Oct 8, 2024

@mikeldking Thank you! I believe the issue stems from an error in the document. It would be great if it could be corrected.

@taoari taoari closed this as completed Oct 8, 2024
@github-project-automation github-project-automation bot moved this from 📘 Todo to ✅ Done in phoenix Oct 8, 2024
@mikeldking
Copy link
Contributor

Ah good catch will fix.

Cc @Jgilhuly

@mikeldking mikeldking removed this from phoenix Oct 17, 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 cannot reproduce A bug that cannot be reproduced
Projects
None yet
Development

No branches or pull requests

3 participants