Hi, I'm having trouble with what looks like a Pref...
# ask-community
t
Hi, I'm having trouble with what looks like a Prefect Cloud API problem. I had a flow running which failed after an hour with the following error. The flow had 10+ tasks complete successfully first. I'm running it with Prefect Cloud and K8 agent. The flow have been running successfully before.
Copy code
Failed to set task state with error: ClientError([{'path': ['set_task_run_states'], 'message': '[{\'extensions\': {\'path\': \'$.selectionSet.billing_license.selectionSet.account_name\', \'code\': \'validation-failed\'}, \'message\': \'field "account_name" not found in type: \\\'billing_license\\\'\'}]', 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}])
Traceback (most recent call last):
  File "/root/miniconda3/lib/python3.8/site-packages/prefect/engine/cloud/task_runner.py", line 98, in call_runner_target_handlers
    state = self.client.set_task_run_state(
  File "/root/miniconda3/lib/python3.8/site-packages/prefect/client/client.py", line 1503, in set_task_run_state
    result = self.graphql(
  File "/root/miniconda3/lib/python3.8/site-packages/prefect/client/client.py", line 319, in graphql
    raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'path': ['set_task_run_states'], 'message': '[{\'extensions\': {\'path\': \'$.selectionSet.billing_license.selectionSet.account_name\', \'code\': \'validation-failed\'}, \'message\': \'field "account_name" not found in type: \\\'billing_license\\\'\'}]', 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}]
I'm running Prefect 0.14.7 in the flows and the agent is 0.14.17
a
I had the same issue
🄲 1
j
I had the same issue since last week
🄲 1
m
Thank you for reporting the issue! I'm going to elevate it to the team!
šŸ‘ 1
Apologies for the inconvenience here; the team did identify this and resolved it yesterday so you should not be seeing these errors anymore.Ā Ultimately they are caused by using an old RUNNER token - we recommend upgrading to an API Key at your earliest convenience.
t
Ok, thank you for investigating. @Mariia Kerimova
šŸ‘ 1