Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding to IBMCloud cloudant instance #192

Open
upkarlidder opened this issue Jan 20, 2019 · 2 comments
Open

Binding to IBMCloud cloudant instance #192

upkarlidder opened this issue Jan 20, 2019 · 2 comments

Comments

@upkarlidder
Copy link

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 !

@csantanapr
Copy link
Member

Well the instructions on the readme need to be refactor as the 2 commands are only applicable in IBM environments
“package refresh” and “ic fn service bind” are only applicable in IBM not in open source Apache deployments.

@upkarlidder
Copy link
Author

Are you suggesting to take them out completely ? Or should I add ic function service bind as an alternative under "Setting up a Cloudant database in Bluemix" along with ic fn package refresh.

I could not get ic fn package refresh working earlier. But that may be another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants