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 2019/05/02 03:45:27 UTC
[GitHub] [incubator-openwhisk] noodle88 opened a new issue #4467: Recover /
Re-create action /whisk.system/github/webhook failed
noodle88 opened a new issue #4467: Recover / Re-create action /whisk.system/github/webhook failed
URL: https://github.com/apache/incubator-openwhisk/issues/4467
Hi all,
I just run API and removed /whisk.system/github/webhook
Now, I created action again but its failed.
How to recover / re-create it?
API: api/v1/namespaces/whisk.system/actions/github/webhook
Body:
{
"namespace": "whisk.system/github",
"name": "webhook",
"version": "0.0.46",
"exec": {
"kind": "nodejs:6",
"binary": false
},
"annotations": [
{
"key": "description",
"value": "Creates a webhook on GitHub to be notified on selected changes"
},
{
"key": "feed",
"value": true
},
{
"key": "sampleInput",
"value": {
"accessToken": "123ABCXYZ",
"events": "push,delete,pull-request",
"repository": "myRepository or myOrganization/myRepository",
"username": "myUserName"
}
},
{
"key": "exec",
"value": "nodejs:6"
},
{
"key": "parameters",
"value": [
{
"bindTime": true,
"description": "Your GitHub username",
"name": "username",
"required": true
},
{
"bindTime": true,
"description": "The name of a GitHub repository",
"name": "repository",
"required": true
},
{
"bindTime": true,
"description": "A webhook or personal token",
"doclink": "https://github.com/settings/tokens/new",
"name": "accessToken",
"required": true
},
{
"description": "A comma-separated list",
"doclink": "https://developer.github.com/webhooks/#events",
"name": "events",
"required": true
}
]
}
],
"limits": {
"timeout": 60000,
"memory": 256,
"logs": 10,
"concurrency": 1
},
"publish": false
}
Response:
{
"code": "bKJ3Pa5hgOE1xPecuQhvg5ZAH4VmbNCH",
"error": "The request content was malformed:\n'code' must be a string or attachment object defined in 'exec' for 'nodejs:6' actions"
}
## Environment details:
* local deploymen: ubuntu
## Steps to reproduce the issue:
1. DELETE action : /whisk.system/github/webhook : OK
2. CREATE action: /whisk.system/github/webhook : FAILED
Error: {
"code": "bKJ3Pa5hgOE1xPecuQhvg5ZAH4VmbNCH",
"error": "The request content was malformed:\n'code' must be a string or attachment object defined in 'exec' for 'nodejs:6' actions"
}
## Provide the expected results and outputs:
Expected: action created
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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