Hello Team, I am running prefect in local and ever...
# ask-community
r
Hello Team, I am running prefect in local and everything is working as good except for the api endpoint. It is retrieving 404. Can someone help me? This is my setting: PREFECT_API_URL: http://127.0.0.1:4200/api prefect==3.0.3 prefect-client==3.0.3 Version: 0+untagged.54.g249f8d6 API version: 0.8.4 Python version: 3.10.4 Git commit: 249f8d61 Built: Sat, Oct 19, 2024 8:43 AM OS/Arch: win32/AMD64 Profile: local Server type: server Pydantic version: 2.9.2 Thanks,
1
n
hi @Richard Acuña - can you explain where you're running into the 404?
r
Hi, it is when trying to go to http://127.0.0.1:4200/api
n
are you trying to access the UI? what happens when you run
prefect dashboard open
?
r
It works well, it retrieves the dashboard UI with all the components
I am trying to access to the apis, so I can make requests
n
the base url for the API isnt meant to be navigated to directly
Copy code
<http://127.0.0.1:4200/api>
this is just the URL upon which all REST api request paths are based for example
Copy code
» curl <http://127.0.0.1:4200/api/hello>
"👋"%
feel free to let me know what exactly you're trying to do if I'm missing something
r
got it! My bad, thanks a lot Nate!!
n
no worries!