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] Can't login for playground and monitoring #2003

Open
emirhanyagci opened this issue Feb 4, 2025 · 6 comments
Open

[Bug] Can't login for playground and monitoring #2003

emirhanyagci opened this issue Feb 4, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@emirhanyagci
Copy link

I try to use playground and monitoring but can't login anyway i try both way to login which is ag setup and directly with api key when try with ag setup the error occurs

Image

there isn't exist error at api key but it is not working because when i try the playground example at the documentation and its not working

Image Image

and http://localhost:7777/ return

{"detail":"Not Found"}

@emirhanyagci emirhanyagci added the bug Something isn't working label Feb 4, 2025
@emirhanyagci
Copy link
Author

tried at safari and brave browser

@emirhanyagci
Copy link
Author

emirhanyagci commented Feb 4, 2025

working on chrome , can you fix this ?

@ysolanky
Copy link
Contributor

ysolanky commented Feb 5, 2025

Hello @emirhanyagci !

This is a known issue. Here is some more context. Unfortunately this is not something we can currently fix. Can you please export your AGNO_API_KEY instead?

@emirhanyagci
Copy link
Author

i already tried with api key just working at google browser

@LeonidShamis
Copy link

Hi,
I have the same issue. I tested it on Google Chrome and Brave browsers with the same result - I get error:

The endpoint is not available
Choose a different endpoint

I'm sure that the endpoint is working fine and I configured and used the AGNO_API_KEY from the Playground, but it still does not work with the agno-demo-app as shown below.

BTW, the context that @ysolanky has referenced above also has a problem - there is no ag auth command (see below)

Interestingly, I see the following error in the browser console - does it mean the endpoints must be connected over HTTPS?

4136-b1003721c394611…ZKX7ELV1uPVLwCst:17 Mixed Content: The page at 'https://app.agno.com/playground/chat?endpoint=192.168.20.10%253A8000' was loaded over HTTPS, but requested an insecure resource 'http://192.168.20.10:8000/v1/playground/status'. This request has been blocked; the content must be served over HTTPS.
(agno-demo-app) /agno-agi/agno-demo-app$ ag --help

 Usage: ag  [COMMAND] [OPTIONS]

 Agno is a model-agnostic framework for building AI Agents.

 Usage:
 1. Run `ag ws create` to create a new workspace
 2. Run `ag ws up` to start the workspace
 3. Run `ag ws down` to stop the workspace

?- Options -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------?
¦ --help          Show this message and exit.                                                                                                                                                             ¦
?---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------?
?- Commands ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------?
¦ setup     Setup your account                                                                                                                                                                            ¦
¦ init      Initialize Agno, use -r to reset                                                                                                                                                              ¦
¦ reset     Reset Agno installation                                                                                                                                                                       ¦
¦ ping      Ping Agno servers                                                                                                                                                                             ¦
¦ config    Print Agno config                                                                                                                                                                             ¦
¦ set       Set current directory as active workspace                                                                                                                                                     ¦
¦ start     Start resources defined in a resources.py file                                                                                                                                                ¦
¦ stop      Stop resources defined in a resources.py file                                                                                                                                                 ¦
¦ patch     Update resources defined in a resources.py file                                                                                                                                               ¦
¦ restart   Restart resources defined in a resources.py file                                                                                                                                              ¦
¦ ws        Manage workspaces                                                                                                                                                                             ¦
?---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------?
(agno-demo-app) /agno-agi/agno-demo-app$
(agno-demo-app) /agno-agi/agno-demo-app$ docker ps -a | grep -e ID -e demo
CONTAINER ID   IMAGE                                             COMMAND                  CREATED         STATUS          PORTS                                                                                      NAMES
0d140c6b0b23   agnohq/agno-demo-app:dev                          "/app/scripts/entryp…"   4 seconds ago   Up 3 seconds    0.0.0.0:8000->8000/tcp, :::8000->8000/tcp                                                  agno-demo-app-dev
c4d62d47aa63   agnohq/pgvector:16                                "docker-entrypoint.s…"   5 seconds ago   Up 4 seconds    0.0.0.0:5432->5432/tcp, :::5432->5432/tcp                                                  agno-demo-app-dev-db
(agno-demo-app) /agno-agi/agno-demo-app$ 

(agno-demo-app) /agno-agi/agno-demo-app$ docker logs agno-demo-app-dev
2025/02/12 02:44:31 Waiting for: tcp://agno-demo-app-dev-db:5432
2025/02/12 02:44:31 Connected to tcp://agno-demo-app-dev-db:5432
Running: uvicorn api.main:app --reload
INFO:     Will watch for changes in these directories: ['/app']
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [1] using WatchFiles
WARNING  No Serpapi API key provided
INFO     Creating playground endpoint: http://localhost:8000
INFO:     Started server process [15]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     192.168.20.83:64797 - "GET /docs HTTP/1.1" 200 OK
INFO:     192.168.20.83:64797 - "GET /openapi.json HTTP/1.1" 200 OK
INFO:     192.168.20.83:64801 - "GET /v1/health HTTP/1.1" 200 OK
(agno-demo-app) /agno-agi/agno-demo-app$

(agno-demo-app) /agno-agi/agno-demo-app$ docker exec -it agno-demo-app-dev bash
app@0d140c6b0b23:~$ env | grep API_KEY
AGNO_API_KEY=ag-****
OPENAI_API_KEY=sk-****
EXA_API_KEY=86f8****
app@0d140c6b0b23:~$ exit
exit
(agno-demo-app) /agno-agi/agno-demo-app$

(agno-demo-app) /agno-agi/agno-demo-app$ curl -s -X 'GET' 'http://192.168.20.10:8000/v1/health' -H 'accept: application/json' | jq .
{
  "status": "success",
  "router": "health",
  "path": "/health",
  "utc": "2025-02-12T02:48:34.621193Z"
}
(agno-demo-app) /agno-agi/agno-demo-app$

(agno-demo-app) /agno-agi/agno-demo-app$ curl -s -X 'GET' 'http://192.168.20.10:8000/v1/playground/agents' -H 'accept: application/json' | jq '.[] | .agent_id'
"simple-agent"
"web-search-agent"
"research-agent"
"finance-agent"
(agno-demo-app) /agno-agi/agno-demo-app$

@dirkbrnd
Copy link
Contributor

@LeonidShamis Just confirming this has been resolved for you with the updates we made to the demo-app?

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
None yet
Development

No branches or pull requests

4 participants