seeing this error first time.. anyone else who fac...
# prefect-community
d
seeing this error first time.. anyone else who faced this an was able to fix it ?
Copy code
07:01:33.898 | ERROR   | Task run 'run_executor-a1954751-160' - Crash detected! Execution was interrupted by an unexpected exception: AssertionError
Copy code
Crash detected! Execution was interrupted by an unexpected exception: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 1405, in report_task_run_crashes
    yield
  File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 1108, in begin_task_run
    state = await orchestrate_task_run(
  File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 1203, in orchestrate_task_run
    state = await propose_state(
  File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 1534, in propose_state
    response = await client.set_task_run_state(
  File "/usr/local/lib/python3.9/site-packages/prefect/client/orion.py", line 1687, in set_task_run_state
    response = await <http://self._client.post|self._client.post>(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1848, in post
    return await self.request(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1533, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/usr/local/lib/python3.9/site-packages/prefect/client/base.py", line 160, in send
    await super().send(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1620, in send
    response = await self._send_handling_auth(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1648, in _send_handling_auth
    response = await self._send_handling_redirects(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1685, in _send_handling_redirects
    response = await self._send_single_request(request)
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1722, in _send_single_request
    response = await transport.handle_async_request(request)
  File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
    resp = await self._pool.handle_async_request(req)
  File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 221, in handle_async_request
    await self._attempt_to_acquire_connection(status)
  File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 160, in _attempt_to_acquire_connection
    status.set_connection(connection)
  File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 22, in set_connection
    assert self.connection is None
AssertionError

During handling of the above exception, another exception occurred:

AssertionError
m
Hey @Deepanshu Aggarwal Could you provide some more details about the flow that triggered this error, i.e. a minimum reproducible example, what task runner you're using, is this a consistent issue or intermittent?
d
I’ve mentioned that in the GitHub issue I’ve raised
m
Ah, apologies just getting caught up from the long weekend.
d
@Mason Menges the issue i raised https://github.com/PrefectHQ/prefect/issues/7656 has been closed but im not able to understand how to fix this underlying issue . can i get some help with this ? cc @Taylor Curran