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:
- Bind /whisk.system/ package to a local named package
ic fn package bind /whisk.system/cloudant my-cloudant-package
- Bind your cloudant service to the new package
ic fn service bind cloudantnosqldb my-cloudant-package --instance <your ibmcloud cloudant instance name>
- 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 !
The instructions under
Setting up a Cloudant database in Bluemixare not working for me withwsk package refresh. However, I am able to useic fn service bindcommand.Instead the following works:
ic fn package bind /whisk.system/cloudant my-cloudant-packageic fn service bind cloudantnosqldb my-cloudant-package --instance <your ibmcloud cloudant instance name>ic fn package get my-cloudant-packageI think we should correct
refreshusage if I am doing it incorrectly and also add theic fn service bindway. Happy to create a PR if you can verify this issue. Thank you !