when i start the prefect worker helm chart i get: ```β”‚ prefect.exceptions.PrefectHTTPStatusError: Cl...
s
when i start the prefect worker helm chart i get:
Copy code
β”‚ prefect.exceptions.PrefectHTTPStatusError: Client error '405 Method Not Allowed' for url '<http://prefect-server.prefect:4200/api/work_pools/>'                                           β”‚
a
Hey @Scott Cressi, it looks like your worker is failing when attempting to create a work pool when it starts up. Are you able to confirm that the process running your worker has network connectivity to your Prefect server?
s
i can curl prefect-server.prefect:4200
i installed the server chart as prefect-server into the prefect namespace
so that’s where that comes from
and the api url i gave the worker chart is this:
should that not work?
or is that value wrong?
a
I would expect that to work. Just to be sure, does
curl <http://prefect-server.prefect:4200/api/hello>
return a response?
s
yup
it returns:
Copy code
"πŸ‘‹"
a
OK, can you try to create a work pool via the API directly with
curl -d '{"name": "test", "type": "test"}' -H "Content-Type: application/json" -X POST <http://prefect-server.prefect:4200/api/work_pools/>
i
this worked for me : p