Pages deploy hook (GET) not working ("method_not_allowed")

I’ve created a deploy hook and when I’m trying to trigger a deploy by visiting the generated URL (GET method), I get this error and no deploy is triggered:

{
“code”: 1001,
“error”: “method_not_allowed”
}

The URL is like this: https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/.....

The POST hook works as expected.

You need to do a POST rather than a GET. It only accepts POST.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.