Hi, I'm having some issues with the async python O...
# prefect-community
e
Hi, I'm having some issues with the async python Orion client and what looks to be a cloudpickle error. Code/screenshots in thread.
1
Prefect 2.6.3, Python 3.8. Backend is Prefect Cloud. Code is pretty simple:
Copy code
import asyncio
from prefect.client.orion import get_client
client = get_client()
resp = asyncio.run(client.read_flow_runs())
But there seems to be a missing argument to cloudpickle in the internal utils (see screenshot) FWIW
prefect flow-run ls
works fine from the command line, so I don't think it's an issue with the api endpoint itself.
Also, many other endpoints do work, for example
Copy code
client.api_healthcheck()
client.read_deployments()
client.read_block_documents()
client.read_logs()
all seem to work correctly
j
Hmm. Thanks, Erik. Sounds like a bug. I don’t see an open issue on the topic. Are you able to open at the repo: https://github.com/PrefectHQ/prefect/issues/new/choose?
e
Yeah I'll open an issue