The endpoint is not available

Hello :slight_smile:

I have a small problem when running phidata with the UI. When I try the playground.py example it seems everything is running fine. But when I try to access the localhost:7777 endpoint in the UI I get the error message ā€œThe endpoint is not availableā€.

I have a feeling it is something simple I am missing. Has anyone experienced this issue?

1 Like

Iā€™m having the same issue unfortunately. Any help would be appreciated.

Hi @gianthelper and @Leicht
Thank you for reaching out and using Phidata! Iā€™ve tagged the relevant engineers to assist you with your query. We aim to respond within 24 hours.
If this is urgent, please feel free to let us know, and weā€™ll do our best to prioritize it.
Thanks for your patience!

Hey @gianthelper @Leicht, can you confirm if you are running this cookbook phidata/cookbook/agents/06_playground.py at main Ā· phidatahq/phidata Ā· GitHub ?

Hi @manthanguptaa :slight_smile: I can indeed confirm that.

I have copied the code from 06_playground.py. As I do not have openai api I have replaced that with ollama. Otherwise it is identical.

@Leicht I wasnā€™t able to replicate the issue on my end. Please run pip install -U phidata ollama so that you are on the latest version of phidata and ollama. Here is a script that worked for me phidata/cookbook/playground/ollama_agents.py at main Ā· phidatahq/phidata Ā· GitHub

Hi @manthanguptaa. Thanks for the effort. I have copied your code and installed the packages. I even formated my computer and reinstalled pop_os. But when I run the serve_playground_app it runs fine in the terminal. I access the link that is provided and get the same response when I pick endpoint ā€œThe endpoint is not availableā€. If I test the access to the ollama model with web_agent.print_response("Share a 2 sentence horror story.") I get a correct response in the terminal. It is really odd indeed.

@Leicht have you tried running phi auth in your terminal to authenticate?

@manthanguptaa Yeah. I can also confirm that my email and name are in the settings in the UI. So I assume the authentication is correct.

The UI must send some kind of request to the backend. Do you know of an alternative way to test the backend?

@Leicht, showing email and name in the settings of the UI is a little different than what I am asking you to do here. You have to run phi auth in your terminal from where you are running the playground so that the connection between the local and UI happens.

@Leicht When you log into the playground, that creates your identity on our Agent UI, but you still have to authenticate your phi CLI from the terminal. So running phi auth in your terminal connects the CLI to the Agent UI. When you then serve the playground app it should work.

Hello again - I stumpled onto the FAQ and could see that Brave browser was the culprit. I Ended up using the API key and unblocking the dashboard. Then I worked! Thanks for the help.

2 Likes