Geese Howard
09/08/2023, 4:00 AMhelm install prefect-agent prefect/prefect-agent --namespace==prefect -f values.yaml
), I was constantly getting API authentification error with the following kubernetes pod logs:
Starting v2.12.1 agent connected to
<https://api.prefect.cloud/api/accounts//workspaces/>...
___ ___ ___ ___ ___ ___ _____ _ ___ ___ _ _ _____
| _ \ _ \ __| __| __/ __|_ _| /_\ / __| __| \| |_ _|
| _/ / _|| _|| _| (__ | | / _ \ (_ | _|| .` | | |
|_| |_|_\___|_| |___\___| |_| /_/ \_\___|___|_|\_| |_|
Agent started! Looking for work from queue(s): default...
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/prefect/cli/_utilities.py", line 41, in wrapper
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 255, in coroutine_wrapper
return call()
File "/usr/local/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 382, in __call__
return self.result()
File "/usr/local/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 282, in result
return self.future.result(timeout=timeout)
File "/usr/local/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 168, 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 "/usr/local/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 345, in _run_async
result = await coro
File "/usr/local/lib/python3.10/site-packages/prefect/cli/agent.py", line 196, in start
async with anyio.create_task_group() as tg:
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 597, in __aexit__
raise exceptions[0]
File "/usr/local/lib/python3.10/site-packages/prefect/utilities/services.py", line 53, in critical_service_loop
await workload()
File "/usr/local/lib/python3.10/site-packages/prefect/agent.py", line 271, in check_for_cancelled_flow_runs
named_cancelling_flow_runs = await self.client.read_flow_runs(
File "/usr/local/lib/python3.10/site-packages/prefect/client/orchestration.py", line 1776, in read_flow_runs
response = await <http://self._client.post|self._client.post>("/flow_runs/filter", json=body)
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1848, in post
return await self.request(
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1530, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/local/lib/python3.10/site-packages/prefect/client/base.py", line 285, in send
response.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/prefect/client/base.py", line 138, in raise_for_status
raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<https://api.prefect.cloud/api/accounts//workspaces/flow_runs/filter>'
Response: {'detail': 'Not Found'}
For more information check: <https://httpstatuses.com/404>
An exception occurred
I tried to check the correctness of API keys by retrieving prefect-api-key from GKE secret, using new API key, but non of these measures worked well.
Would it be possible to get any guess on why this is happening?Jamie Zieziula
09/08/2023, 4:11 AM