Hi, I am looking into getting started with Prefect...
# prefect-community
p
Hi, I am looking into getting started with Prefect Cloud. Trying to authenticate my machine with `
Copy code
prefect cloud login --token $TOKEN
results in
Copy code
[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
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:
Copy code
prefect auth login -t $TOKEN
p
Hey @nicholas, yeah, I generated a Token via the UI and parsed it into the command. The full error ouput is
Copy code
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
Ah got it, thanks for that. Run
prefect backend cloud
and then try that again
p
Ah I see. Need to switch the backend type, worked. Thanks for the quick help!
n
No problem! 😄