Hi all, we are running the Prefect 2.1.0 agent on ...
# prefect-community
s
Hi all, we are running the Prefect 2.1.0 agent on Kubernetes. The API in the deployment has no errors, but the agent throws the following error: prefect.exceptions.PrefectHTTPStatusError: Client error ‘404 Not Found’ for url ‘https://api.prefect.cloud/account/[my accountid]/workspace/[my workspace id]/block_types/’ Can someone please explain what is going on?
1
👀 1
s
You have to update the image on all prefect services involved which is most likely where the error is coming from..maybe your local computer where you build the deployment?
s
I did update the latest Prefect version on my computer and re-generated the deployment.yaml files for both orion services and the agent Using this example https://github.com/PrefectHQ/prefect-recipes/blob/main/video-demos/setup-azure-with-prefect/commands_used.sh I also deleted the deployment on the AKS and re-deployed the Yaml files. Still the same problem…
b
Hi Saman, can you confirm that the api key has access to the workspace? If we get a request for a workspace id that the actor doesn’t have access to, we return a 404.
Maybe try creating a new API key and adjust the active profile that you are using?
prefect profile inspect
Maybe adjusting the Prefect_API_URL as well?
✔️ 1
s
We just found the problem, which was in the URL of the API. The correct version: https://api.prefect.cloud/*api/accounts*/[my accountid]/*workspaces*/[my workspace id]
1
b
Wonderful! Glad it's working now.