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/09/30 17:59:33 UTC

[GitHub] [openwhisk-catalog] Reylak opened a new issue #309: samples/countdown needs API key

Reylak opened a new issue #309: samples/countdown needs API key
URL: https://github.com/apache/openwhisk-catalog/issues/309
 
 
   Hello, I installed OpenWhisk following [this repo](https://github.com/apache/openwhisk-deploy-kube), which worked well, and I was able to run `wsk -i action invoke /whisk.system/samples/greeting --result` with success.
   
   However `wsk -i action invoke /whisk.system/samples/countdown --result` fails with the following error:
   ```json
   {
       "error": "An error has occurred: Error: Invalid constructor options. Missing api_key parameter or token plugin."
   }
   ```
   
   I understand countdown needs an API key to re-invoke itself recursively, however `wsk -i action get /whisk.system/samples/countdown` gives:
   ```json
   {
       "namespace": "whisk.system/samples",
       "name": "countdown",
       "version": "0.0.1",
       "exec": {
           "kind": "nodejs:10",
           "binary": false
       },
       "annotations": [
           {
               "key": "provide-api-key",
               "value": false
           },
           {
               "key": "exec",
               "value": "nodejs:10"
           },
           {
               "key": "parameters",
               "value": [
                   {
                       "description": "number of times the action needs to be invoked",
                       "name": "n",
                       "required": false
                   }
               ]
           }
       ],
       "limits": {
           "timeout": 60000,
           "memory": 256,
           "logs": 10,
           "concurrency": 1
       },
       "publish": false
   }
   ```
   (I omitted what I believe are irrelevant annotations)
   
   I guess the annotation `provide-api-key` should read `true`?
   
   I don't know where does this value of `false` comes from though. From what I understand, the Helm chart pulls this repo during installation, and checks out the tag "0.10.0-incubating"; and the manifest for samples/countdown does not mention this annotation. So where is the problem (if I'm right in that the `provide-api-key` annotation is the cause of the encountered error)?

----------------------------------------------------------------
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