https://prefect.io logo
Title
s

Scott Cressi

04/10/2023, 5:50 PM
when i start the prefect worker helm chart i get:
โ”‚ prefect.exceptions.PrefectHTTPStatusError: Client error '405 Method Not Allowed' for url '<http://prefect-server.prefect:4200/api/work_pools/>'                                           โ”‚
a

alex

04/10/2023, 6:04 PM
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

Scott Cressi

04/10/2023, 6:05 PM
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

alex

04/10/2023, 6:09 PM
I would expect that to work. Just to be sure, does
curl <http://prefect-server.prefect:4200/api/hello>
return a response?
s

Scott Cressi

04/10/2023, 6:27 PM
yup
it returns:
"๐Ÿ‘‹"
a

alex

04/10/2023, 7:06 PM
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/>