https://prefect.io logo
Title
r

ramaido

01/31/2023, 2:00 AM
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

Christopher Boyd

01/31/2023, 3:32 PM
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 :
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

ramaido

02/02/2023, 2:55 AM
Thank you so much @Christopher Boyd , gonna try this one.
How about if i want to connect prefect to cloud again?
c

Christopher Boyd

02/02/2023, 4:41 PM
you can just switch the url
for the api url