08/24/2022, 1:53 PM
I get the following error for `prefect block ls`:
Traceback (most recent call last):
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/prefect/cli/", line 41, in wrapper
    return fn(*args, **kwargs)
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/prefect/utilities/", line 193, in wrapper
    return run_async_in_new_loop(async_fn, *args, **kwargs)
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/prefect/utilities/", line 140, in run_async_in_new_loop
    return, *args, **kwargs))
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/anyio/_core/", line 70, in run
    return, *args, **backend_options)
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/anyio/_backends/", line 292, in run
    return native_run(wrapper(), debug=debug)
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/asyncio/", line 44, in run
    return loop.run_until_complete(main)
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/asyncio/", line 616, in run_until_complete
    return future.result()
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/anyio/_backends/", line 287, in wrapper
    return await func(*args)
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/prefect/cli/", line 162, in block_ls
    blocks = await client.read_block_documents()
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/prefect/", line 1304, in read_block_documents
    response = await <|>(
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/httpx/", line 1842, in post
    return await self.request(
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/httpx/", line 1527, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/prefect/", line 280, in send
  File "/home/tibuch/Apps/miniconda3/envs/eicm-dev/lib/python3.8/site-packages/prefect/", line 226, in raise_for_status
    raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<>'
For more information check: <>
An exception occurred.
I noticed that exists but does not exist. Am I doing something wrong or is there a bug? Okay, either something happened on your end or the following sequence of commands fixed it:
prefect cloud workspace set --workspace "...."
prefect profile inspect
Then I executed a flow locally and it showed up in the cloud interface. Then I executed
prefect block ls
again and this time it worked.
👍 2

Jeff Hale

08/24/2022, 2:33 PM
Glad to hear it worked @Tim-Oliver! Are you able to move your code to the thread to help keep the channel tidy?
👍 1