Hi prefect, have question. I logged in into prefec...
# prefect-ui
r
Hi prefect, have question. I logged in into prefect cloud in my pc. When i want to try prefect orion using "prefect orion start" in my command i have an error "Can't connect to Orion API at https://api.prefect.cloud/api/accounts/f51bf45b-69dc-4eb7-8abf-cf15de62957d/workspaces/2c3d9902-9ad6-456c-baf7-6c0674c919a3. Check that it's accessible from your machine." Is there any solution?
c
Are you trying to use the cloud prefect, or the local prefect? Based on the output, you are trying to do both
If you want to test / demo prefect orion (the local version), you can :
Copy code
prefect profile create local_test
prefect profile use local_test

prefect config set PREFECT_API_URL=<http://127.0.0.1:4200/api>

prefect orion start
Note - the prefect API url that you have listed, is explicitly for the cloud - using prefect orion, would be communicately via localhost to a local database instance that is started with prefect orion start
r
Thank you so much @Christopher Boyd , gonna try this one.
How about if i want to connect prefect to cloud again?
c
you can just switch the url
for the api url