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]: Prompt Not Found - 404 Error #6746

Open
jlopatec opened this issue Mar 8, 2025 · 1 comment
Open

[BUG]: Prompt Not Found - 404 Error #6746

jlopatec opened this issue Mar 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jlopatec
Copy link
Collaborator

jlopatec commented Mar 8, 2025

Where do you use Phoenix

Phoenix Cloud (app.phoenix.arize.com)

What version of Phoenix are you using?

8.10

What operating system are you seeing the problem on?

mac

What version of Python are you running Phoenix with?

3.13

What version of Python or Node are you using instrumentation with?

No response

What instrumentation are you using?

No response

What happened?

The get "prompts.get" returns an HTTP 404 when the prompt doesn't exist. It should be a clear prompt doesn't exist issue and not a HTTP 404.

Given it was my first use of prompt API, I thought I had connectivity issues and spent time looking at HTTP endpoint.

Image

Example with a prompt that exists:

Image

What did you expect to happen?

I expect a clear Message that the prompt doesn't exist, shouldn't be a python & HTTP error

How can we reproduce the bug?

Run this on Phoenix Cloud.
from phoenix.client import Client

Initialize a phoenix client with your phoenix endpoint

By default it will read from your environment variables

cl = Client(

endpoint="https://my-phoenix.com",

)

Pulling a prompt by name

prompt_name2 = "article-bullet-summarizer-random"
cl.prompts.get(prompt_identifier=prompt_name)

Additional information

No response

@jlopatec jlopatec added bug Something isn't working triage issues that need triage labels Mar 8, 2025
@jlopatec jlopatec added this to phoenix Mar 8, 2025
@github-project-automation github-project-automation bot moved this to 📘 Todo in phoenix Mar 8, 2025
@axiomofjoy
Copy link
Contributor

This makes sense. We can wrap errors in the client with our own set of errors.

@mikeldking mikeldking removed the triage issues that need triage label Mar 8, 2025
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
Status: 📘 Todo
Development

No branches or pull requests

3 participants