Tom Klein

11/19/2021, 2:21 PM
and, on a separate issue, when i try to test out prefect cloud and lift up a local agent (according to instruction given) - i'm seeing the following:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=4200): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f75545fe490>: Failed to establish a new connection: [Errno 111] Connection refused'))
after running:
prefect agent local start --name "Default Agent" --token  <token given by the cloud>

Kevin Kho

11/19/2021, 2:32 PM
Hey @Tom Klein, this is trying to connect to Prefect Server which is not up. You need to do
prefect backend cloud
to swtich

Tom Klein

11/19/2021, 2:32 PM
ohh, gotcha
worked, thanks!