William Callaghan
12/10/2024, 3:09 PMEncountered exception during execution: PrefectHTTPStatusError("Server error '500 Internal Server Error' for url '<http://prefect-server.prefect.svc.cluster.local:4200/api/flow_runs/>'\nResponse: {'exception_message': 'Internal Server Error'}\nFor more information check: <https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500>")
Traceback (most recent call last):
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 710, in run_context
yield self
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 773, in run_flow_async
await engine.call_flow_fn()
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 728, in _call_flow_fn
result = await call_with_parameters(self.flow.fn, self.parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/venvs/libs/prefect/unitary/prefect/flows/unitary_flow.py", line 236, in async_wrapper
result: R = await func(*args, **inner_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/unitarybot-master/orchestration/workflows/flows/delta/ingest_ango_labels.py", line 416, in ingest_all_available_project_labels
await assign_splits_for_latest_labeled_content(
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 770, in run_flow_async
with engine.start():
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 690, in start
with self.initialize_run(), trace.use_span(self._span):
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 602, in initialize_run
self.flow_run = self.create_flow_run(self.client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 458, in create_flow_run
flow_run = client.create_flow_run(
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/client/orchestration.py", line 3842, in create_flow_run
response = <http://self._client.post|self._client.post>("/flow_runs/", json=flow_run_create_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/venvs/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1146, in post
return self.request(
^^^^^^^^^^^^^
File "/home/venvs/.venv/lib/python3.12/site-packages/httpx/_client.py", line 828, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/client/base.py", line 575, in send
response.raise_for_status()
File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/client/base.py", line 174, in raise_for_status
raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
prefect.exceptions.PrefectHTTPStatusError: Server error '500 Internal Server Error' for url '<http://prefect-server.prefect.svc.cluster.local:4200/api/flow_runs/>'
Response: {'exception_message': 'Internal Server Error'}
For more information check: <https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500>
Marvin
12/10/2024, 3:10 PMI'm receiving the following error on Prefect 3.1.4 while trying to send a slack notification from prefect:```Encountered exception during execution: PrefectHTTPStatusError("Server error '500 Internal Server Error' for url 'http://prefect-server.prefect.svc.cluster.local:4200/api/flow_runs/'\nResponse: {'exception_message': 'Internal Server Error'}\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500") Traceback (most recent call last): File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 710, in run_context yield self File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 773, in run_flow_async await engine.call_flow_fn() File "/home/venvs/.venv/lib/python3.12/site-packages/prefect/flow_engine.py", line 728, in _call_flow_fn result = await call_with_parameters(self.flow.fn, self.parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/venvs/libs/prefect/unitary/prefect/flows/unitary_flow.py", line 236, in async_wrapper result: R = await func(*args, **inner_kwargs) ^
William Callaghan
12/10/2024, 3:11 PMEncountered exception during execution: PrefectHTTPStatusError("Server error '500 Internal Server Error' for url '<http://prefect-server.prefect.svc.cluster.local:4200/api/flow_runs/>'\nResponse: {'exception_message': 'Internal Server Error'}\nFor more information check: <https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500>")
Marvin
12/10/2024, 3:11 PMWilliam Callaghan
12/10/2024, 3:11 PMWilliam Callaghan
12/10/2024, 3:15 PMMarvin
12/10/2024, 3:15 PMPREFECT_API_URL
, database connection URLs, and if you're using a reverse proxy, make sure it's configured properly. More details can be found in the settings documentation here: Prefect Server Settings.
2. API Trailing Slash: Sometimes, API requests may fail due to a missing trailing slash. Ensure that your API URLs are correctly formatted as specified in the troubleshooting docs: API Requests Guide.
3. General Troubleshooting: Confirm you're running the latest version of Prefect, as updates might address existing issues. Also, carefully check your logs for any indications of what might be going wrong in your flow code or configuration: General Troubleshooting.
Check these configuration settings and code to ensure everything aligns with Prefect's expectations. If you are still facing issues, I'd recommend reaching out to Prefect support with detailed logs for further assistance. Ah, the charming elegance of digital chaos—may your bug hunts be brief!