Are there any issues appearing on prefect's side o...
# ask-community
t
Are there any issues appearing on prefect's side of things right now? We had a flow fail and receive a 404 when trying to call the
/set_state
endpoint for a task_run
Copy code
Encountered exception during execution:
Traceback (most recent call last):
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/engine.py", line 875, in orchestrate_flow_run
    result = await flow_call.aresult()
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 327, in aresult
    return await asyncio.wrap_future(self.future)
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 352, in _run_sync
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/prefect/etl-processes-main/src/srse_delayed/srse_delayed.py", line 164, in run_srse_delayed_process
    mysqlimport_execution = shell_run_command(
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/tasks.py", line 600, in __call__
    return enter_task_run_engine(
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/engine.py", line 1417, in enter_task_run_engine
    return from_sync.wait_for_call_in_loop_thread(begin_run)
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/_internal/concurrency/api.py", line 218, in wait_for_call_in_loop_thread
    return call.result()
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 318, in result
    return self.future.result(timeout=timeout)
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 179, in result
    return self.__get_result()
  File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 389, in _run_async
    result = await coro
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/engine.py", line 1551, in get_task_call_return_value
    return await future._result()
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/futures.py", line 237, in _result
    return await final_state.result(raise_on_failure=raise_on_failure, fetch=True)
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/states.py", line 91, in _get_state_result
    raise await get_state_exception(state)
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/task_runners.py", line 231, in submit
    result = await call()
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/engine.py", line 1802, in begin_task_run
    state = await orchestrate_task_run(
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/engine.py", line 2145, in orchestrate_task_run
    state = await propose_state(client, terminal_state, task_run_id=task_run.id)
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/utilities/engine.py", line 377, in propose_state
    response = await set_state_and_handle_waits(set_state)
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/utilities/engine.py", line 364, in set_state_and_handle_waits
    response = await set_state_func()
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/client/orchestration.py", line 2300, in set_task_run_state
    response = await <http://self._client.post|self._client.post>(
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/client/base.py", line 356, in send
    response.raise_for_status()
  File "/opt/pysetup/.venv/lib/python3.10/site-packages/prefect/client/base.py", line 169, in raise_for_status
    raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found'
I left the URL out at the bottom out of the stacktrace, but the format of the error is as such:
Copy code
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<https://api.prefect.cloud/api/accounts/><account_id>/workspaces/<workspace_id>/task_runs/<task_run_id>/set_state'
j
We are getting a related error:
Copy code
Crash detected! Request to <https://api.prefect.cloud/api/accounts/[]/workspaces/[]/task_runs/[]/set_state> failed: ConnectError: All connection attempts failed