Hi all - I’ve been trying to use ```client.get_flo...
# ask-community
b
Hi all - I’ve been trying to use
Copy code
client.get_flow_run_info(flow_run_id)
with a flow run id in the format “c2686800-3c0f-4b67-83b2-f85fa6fd6773” I’m getting the following:
Copy code
'message': 'invalid input syntax for type uuid: "c2686800-3c0f-4b67-83b2-f85fa6"'
I assume I’m doing something fairly stupid - could someone explain why the UUID is in the wrong format?
b
random guess here - maybe use an actual uuid type and not a string?
n
Hi @Ben Collier - I can't see how you're constructing your variable but something like this should work:
Copy code
In [1]: import prefect
In [2]: id = "c2686800-3c0f-4b67-83b2-f85fa6fd6773"
In [3]: c = prefect.Client()
In [4]: info = c.get_flow_run_info(flow_run_id=id)
b
Thanks chaps, running it in the cli highlighted the fact that I was storing the damned thing in a field which was too small. Nnng.