You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/01/16 18:01:51 UTC

[GitHub] eweiter opened a new issue #252: Github is failing to clean up webhooks during DELETE lifecycle

eweiter opened a new issue #252: Github is failing to clean up webhooks during DELETE lifecycle
URL: https://github.com/apache/incubator-openwhisk-catalog/issues/252
 
 
   I was using the IBM Cloud Functions UI and I noticed the following behavior for Github trigger. 
   
   When I would create a trigger it would appear to create the Trigger and the Feed fine.  The feed calls response was:
   `
   {"duration":589,"name":"webhook","subject":"eweiter@us.ibm.com","activationId":"e8ec3315288c4457ac3315288cf457d1","publish":false,"annotations":[{"key":"path","value":"whisk.system/github/webhook"},{"key":"waitTime","value":37},{"key":"kind","value":"nodejs:6"},{"key":"limits","value":{"timeout":60000,"memory":256,"logs":10}},{"key":"initTime","value":249}],"version":"0.0.264","response":{"result":{"response":"{\"type\":\"Repository\",\"id\":20159188,\"name\":\"web\",\"active\":true,\"events\":[\"push\"],\"config\":{\"url\":\"https://9c76315d-38ad-4977-b7a7-bc32abfb5a85:D2lSABf5mWpiu4q34KhjIcXsEvea7DgQANRrWAHxszKmbL9HsSQGfrQOBDRJ14AU@10.121.10.111:443/api/v1/namespaces/eweiter%40us.ibm.com_dev/triggers/JasonTest\",\"content_type\":\"json\",\"insecure_ssl\":\"0\"},\"updated_at\":\"2018-01-16T17:52:37Z\",\"created_at\":\"2018-01-16T17:52:37Z\",\"url\":\"https://api.github.com/repos/eweiter/bumblefoot/hooks/20159188\",\"test_url\":\"https://api.github.com/repos/eweiter/bumblefoot/hoo
 ks/20159188/test\",\"ping_url\":\"https://api.github.com/repos/eweiter/bumblefoot/hooks/20159188/pings\",\"last_response\":{\"code\":null,\"status\":\"unused\",\"message\":null}}"},"success":true,"status":"success"},"end":1516125157900,"logs":[],"start":1516125157311,"namespace":"eweiter@us.ibm.com_dev"}
   `
   To me it is showing that a "Push" event was created and that it is Active. 
   
   However when I go to delete that Trigger, the Feed deletion encounters an error.  The Feed deletion response was:
   `
   {"duration":207,"name":"webhook","subject":"eweiter@us.ibm.com","activationId":"6a3da00bcc7448e6bda00bcc7438e60d","publish":false,"annotations":[{"key":"limits","value":{"timeout":60000,"memory":256,"logs":10}},{"key":"path","value":"whisk.system/github/webhook"},{"key":"kind","value":"nodejs:6"},{"key":"waitTime","value":23}],"version":"0.0.264","response":{"result":{"error":"Found no existing webhooks for trigger URL https://9c76315d-38ad-4977-b7a7-bc32abfb5a85:D2lSABf5mWpiu4q34KhjIcXsEvea7DgQANRrWAHxszKmbL9HsSQGfrQOBDRJ14AU@10.121.10.111:443/api/v1/namespaces/eweiter%40us.ibm.com_dev/triggers/JasonTest"},"success":false,"status":"application error"},"end":1516125185130,"logs":[],"start":1516125184923,"namespace":"eweiter@us.ibm.com_dev"}
   `
   Where it is telling me that it couldn't find any hooks on that trigger to delete and it is returning a status code of 502. 
   
   Steps to recreate:
   1) Create a Trigger with the Github feed using the "push" event
   2) Delete the Trigger

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services