Has anyone ever seen an error like this during one...
# prefect-community
z
Has anyone ever seen an error like this during one of their prefect flows?
Copy code
Failed to set task state with error: ClientError([{'path': ['set_task_run_states'], 'message': "can't handle event type ConnectionClosed when role=SERVER and state=SEND_RESPONSE", 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}])
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/prefect/engine/cloud/task_runner.py", line 111, in call_runner_target_handlers
    state = self.client.set_task_run_state(
  File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 1177, in set_task_run_state
    result = self.graphql(
  File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 226, in graphql
    raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'path': ['set_task_run_states'], 'message': "can't handle event type ConnectionClosed when role=SERVER and state=SEND_RESPONSE", 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}]
I ran this flow 89 times with different input, and one time it failed with this message.
👀 1
n
I haven't seen this in particular @Zach but that looks like a network blip - if you keep seeing this I'd recommend adding a retry to your task that's throwing it and/or opening a ticket on the Server repo with what info you have so the team can investigate 🙂
z
Thanks nicholas!
😄 1