Hello Everyone, I am trying to create a flow that...
# ask-community
t
Hello Everyone, I am trying to create a flow that triggers other flows using this as a starting point. All flows are executed in dockers but when the parent flow triggers child flows I get a failure with this stack trace:
Copy code
Unexpected error: ClientError([{'path': ['user'], 'message': 'field "user" not found in type: \'query_root\'', 'extensions': {'path': '$.selectionSet.user', 'code': 'validation-failed', 'exception': {'message': 'field "user" not found in type: \'query_root\''}}}])
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/prefect/engine/runner.py", line 48, in inner
    new_state = method(self, state, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/prefect/engine/task_runner.py", line 856, in get_task_run_state
    value = prefect.utilities.executors.run_task_with_timeout(
  File "/usr/local/lib/python3.8/site-packages/prefect/utilities/executors.py", line 298, in run_task_with_timeout
    return task.run(*args, **kwargs)  # type: ignore
  File "/usr/local/lib/python3.8/site-packages/prefect/utilities/tasks.py", line 449, in method
    return run_method(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/prefect/tasks/prefect/flow_run.py", line 172, in run
    run_link = client.get_cloud_url("flow-run", flow_run_id)
  File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 895, in get_cloud_url
    tenant_slug = self.get_default_tenant_slug(as_user=as_user and using_cloud_api)
  File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 928, in get_default_tenant_slug
    res = self.graphql(query)
  File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 318, in graphql
    raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'path': ['user'], 'message': 'field "user" not found in type: \'query_root\'', 'extensions': {'path': '$.selectionSet.user', 'code': 'validation-failed', 'exception': {'message': 'field "user" not found in type: \'query_root\''}}}]
Any ideas on how to approach to troubleshoot this?
k
Hey @Toni Vlaic, is your code simple enough to share?
t
Hello Kevin, thanks for the response. Unfortunately no, I can try to setup a minimal example to reproduce this sometime this week. But what is confusing to me is that the child flow is triggered and finishes successfully but the parent flow reports the error I copy pasted in the original message.
k
Yes a minimal example would help, especially if a downstream flow is working. Are you on server or cloud?
t
We are using cloud.
Hello @Kevin Kho I finally got the time to reproduce it with minimal code. Here is a very stripped down example that ends with the same error. After running
parent_test
flow it finishes with an error instantly but successfully triggers the first child flow (
child_test
). Thank you very much for your time and patience it is really appreciated.
k
Thank you! Will take a look at this.
t
Just an update, I seem to have resolved this by updating prefect to the latest version. Thank you for your time and willingness to help nevertheless 🙂.
👍 1
k
Oh man I forgot to open these. Sorry about that! Please feel free to ping me next time if I don’t get back to you.