Leon Kozlowski
09/12/2022, 7:55 PMprefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<https://api.prefect.cloud/work_queues/>'
Not sure if I have my api url wrong or some other configuration incorrect19:51:19.313 | ERROR | prefect.agent - Failed to create work queue 'dev'.
Serina
09/12/2022, 7:59 PM'<https://api.prefect.cloud/api/accounts/abc-123-456/workspaces/xyz-987-654>'
Leon Kozlowski
09/12/2022, 7:59 PMspec:
containers:
- name: agent
command: [ "prefect", "agent", "start", "-q", "dev" ]
agent Starting v2.3.0 agent connected to <https://api.prefect.cloud>...
agent
agent ___ ___ ___ ___ ___ ___ _____ _ ___ ___ _ _ _____
agent | _ \ _ \ __| __| __/ __|_ _| /_\ / __| __| \| |_ _|
agent | _/ / _|| _|| _| (__ | | / _ \ (_ | _|| .` | | |
agent |_| |_|_\___|_| |___\___| |_| /_/ \_\___|___|_|\_| |_|
agent
agent
agent Agent started! Looking for work from queue(s): dev...
agent 19:51:19.313 | ERROR | prefect.agent - Failed to create work queue 'dev'.
agent Traceback (most recent call last):
agent File "/usr/local/lib/python3.10/site-packages/prefect/agent.py", line 88, in get_work_queues
agent work_queue = await self.client.create_work_queue(name=name)
agent File "/usr/local/lib/python3.10/site-packages/prefect/client.py", line 835, in create_work_queue
agent response = await <http://self._client.post|self._client.post>("/work_queues/", json=data)
agent File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1842, in post
agent return await self.request(
agent File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1527, in request
agent return await self.send(request, auth=auth, follow_redirects=follow_redirects)
agent File "/usr/local/lib/python3.10/site-packages/prefect/client.py", line 279, in send
agent response.raise_for_status()
agent File "/usr/local/lib/python3.10/site-packages/prefect/client.py", line 225, in raise_for_status
agent raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
agent prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<https://api.prefect.cloud/work_queues/>'
agent For more information check: <https://httpstatuses.com/404>
Zanie
09/12/2022, 8:04 PMPREFECT_API_URL
set to in the agent’s container? Serina is correct that it appars to be incorrectly specified.prefect cloud login --key …
then prefect config view
Leon Kozlowski
09/12/2022, 8:05 PM<https://api.prefect.cloud>
Matching the open source chart: https://github.com/PrefectHQ/prefect-helm/blob/f0e838aa20402fa8c23cb4fca8e6c0576d288b1d/charts/prefect-agent/values.yaml#L25Zanie
09/12/2022, 8:06 PMLeon Kozlowski
09/12/2022, 8:06 PMZanie
09/12/2022, 8:07 PMLeon Kozlowski
09/12/2022, 8:08 PMChristopher Boyd
09/12/2022, 8:10 PMLeon Kozlowski
09/12/2022, 8:10 PMChristopher Boyd
09/12/2022, 8:10 PMLeon Kozlowski
09/12/2022, 8:50 PMChristopher Boyd
09/12/2022, 8:52 PMLeon Kozlowski
09/12/2022, 9:00 PM