https://prefect.io logo
Title
p

Paul

06/08/2020, 5:16 AM
Hi, I am looking into getting started with Prefect Cloud. Trying to authenticate my machine with `
prefect cloud login --token $TOKEN
results in
[WinError 10061] No connection could be made because the target machine actively refused it'))
More precisely other prefect auth commands yield the same result. Did I miss anything in the docs in order to establish a connection to prefect cloud?
n

nicholas

06/08/2020, 5:35 AM
Hi @Paul - are you using a Personal Access Token (a
USER
-scoped token)? You can create one of those from the User > Personal Access Tokens page in the UI:
When you've got one of those, you can log in to Prefect Cloud with this command:
prefect auth login -t $TOKEN
p

Paul

06/08/2020, 5:37 AM
Hey @nicholas, yeah, I generated a Token via the UI and parsed it into the command. The full error ouput is
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=4200): Max retries exceeded with url: /graphql/alpha (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000027B93457948>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
n

nicholas

06/08/2020, 5:40 AM
Ah got it, thanks for that. Run
prefect backend cloud
and then try that again
p

Paul

06/08/2020, 5:44 AM
Ah I see. Need to switch the backend type, worked. Thanks for the quick help!
n

nicholas

06/08/2020, 5:45 AM
No problem! 😄