https://prefect.io logo
j

Jkop

09/15/2023, 2:47 PM
Hello, please I'm having trouble while trying to run a python script. It worked for well for a while when it was first created and I tried it again today then I got this error. Any idea how to fix this
Copy code
raise RuntimeError(
RuntimeError: Cannot create flow run. Failed to reach API at <https://api.prefect.cloud/api/accounts/6a2fa4be-6cab-4b8b-beb3-b5584fb23bd6/workspaces/ccda9056-6485-48ec-b054-b547c6b8900c/>.
```
2
i

Islam Otmani

09/15/2023, 5:56 PM
Hello! A few possibilities are that it's due to: • Network, try
ping api.prefect.cloud
to rule this out. • Authentication / API key, do you see results when running
prefect cloud workspace ls
? ◦ If not, perhaps check you're under the intended cloud profile with
prefect profile ls
. • ACL, a recent change in Access control might be preventing your access. Do you see your workspace in the list using the previous command above?
j

Jkop

09/15/2023, 6:42 PM
No, I do not see any workspace
i

Islam Otmani

09/15/2023, 8:09 PM
Aha, maybe try loggin in again, and if that works fine, contact the Prefect admin in your org to grant you appropriate access in case they've introduced ACL.
j

Jkop

09/15/2023, 9:31 PM
@Islam Otmani Thanks, it's working now. I logged in like you rightly mentioned and realised the API key has expired.
i

Islam Otmani

09/15/2023, 9:35 PM
Perfecto :)
Have a great weekend!
j

Jkop

09/15/2023, 9:44 PM
You too, mate.