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/01/20 21:16:29 UTC

[GitHub] lidderupk opened a new issue #192: Binding to IBMCloud cloudant instance

lidderupk opened a new issue #192: Binding to IBMCloud cloudant instance
URL: https://github.com/apache/incubator-openwhisk-package-cloudant/issues/192
 
 
   The instructions under `Setting up a Cloudant database in Bluemix` are not working for me with `wsk package refresh`. However, I am able to use `ic fn service bind` command. 
   
   ```
   ic fn package refresh                                                                                                                                                                      
   >> error: Package refresh for namespace '_' failed: The connection failed, or timed out. (HTTP status code 401)
   ```
   
   Instead the following works:
   1. Bind /whisk.system/ package to a local named package
   `ic fn package bind /whisk.system/cloudant my-cloudant-package`
   2. Bind your cloudant service to the new package
   `ic fn service bind cloudantnosqldb my-cloudant-package --instance <your ibmcloud cloudant instance name>`
   3. You should now see the cloudant credentials in your package. You can now use the changes feed or the actions available in my-cloudant-package
   `ic fn package get my-cloudant-package`
   
   I think we should correct `refresh` usage if I am doing it incorrectly and also add the `ic fn service bind` way. Happy to create a PR if you can verify this issue. Thank you !

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