Has anyone else run into this problem? I'm running...
# pacc-dec-17-18-2024
m
Has anyone else run into this problem? I'm running the pre-work script in a virtual environment and getting the following error:
Copy code
prefect.exceptions.PrefectHTTPStatusError: Client error '401 Unauthorized' for url '<https://api.prefect.cloud/api/accounts/e2ec5b34-6c75-471d-8df7-bd7051100c1b/workspaces/b290121e-4be8-4e00-b2f2-d8702b16cd97/flows/>'
Response: {'detail': 'Unauthorized'}
The URL does not match our environment (I suspect it's our POC URL which has since been deleted?)
b
hmmm your theory sounds right to me. I don't see any records for an account with that ID 🤔
can you open a browser window with the correct account, run
prefect cloud logout
in your terminal, and then try running
prefect cloud login
?
m
let me give that a try
ok, looks like that works... is there a way to have a personal account/workspace to run this against? I don't want to have our professional environments full of training data if possible
b
sure thing!
unless you've already done so, you can create a personal account using an alternative email and do the same logout/login bit.
m
no way to do that with our work email?
b
You should be able to! When you go to the dashboard in the UI, do you see the option to "Switch account" when you click on the drop down menu in the upper left corner?
m
nope:
b
Ah sorry, you may need to create a new account using a personal email then.