Origin: MethodNotAllowed with Generic web hook

Created on 25 Feb 2016  路  3Comments  路  Source: openshift/origin

Hi all,

I am testing generic web hook to trigger a build in openshift, the HTTP response i got is like below. I guess this is some permission or role authorization issue. Any idea how to relax the security policy to enable any web client can trigger a build by call this web hook url? Thank you in advance

{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "the server does not allow this method on the requested resource",
"reason": "MethodNotAllowed",
"details": {},
"code": 405
}

componenbuild kinquestion prioritP2

Most helpful comment

you have to put a "/" at the end. If you don't do that, this error will cause. here is the example the last slash after github-webhook
http://2bea0e50.ngrok.io/github-webhook/

All 3 comments

That is not a security issue, you are not using the correct HTTP verb. Double check that you are using the POST verb.

Yep, just realized that HTTP post is required. Thx for quick response. Close the issue now!

you have to put a "/" at the end. If you don't do that, this error will cause. here is the example the last slash after github-webhook
http://2bea0e50.ngrok.io/github-webhook/

Was this page helpful?
0 / 5 - 0 ratings