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

401 error when using apikey and url for username and password in credential #65

Open
playground opened this issue Jul 7, 2018 · 4 comments

Comments

@playground
Copy link

Hi, following the instructions on Building a Translation Slack Bot with Serverless Composition. Created an instance of language translator service but not seeing username and password. Tried using apikey and url but was getting 401 error. Please advise.

@playground playground changed the title Not seeing username or password in credential 401 error when using apikey and url for username and password in credential Jul 7, 2018
@tardieu
Copy link
Member

tardieu commented Jul 17, 2018

Hi, thanks for the report.

Sorry I did not see this before. I think I did not get the github notification.

It looks like the translation service has switched to using IAM for credential management and I don't think the cloud functions package has been updated accordingly yet.

I am looking into it..

@tardieu
Copy link
Member

tardieu commented Jul 17, 2018

The solution for now is probably to instantiate the openwhisk watson sdk as outlined in https://github.com/watson-developer-cloud/openwhisk-sdk and
https://github.com/watson-developer-cloud/openwhisk-sdk/tree/master/packages/language-translator-v2 instead of relying on the /whisk.system/watson-translator package.

@playground
Copy link
Author

playground commented Jul 17, 2018

Thanks for getting back with me. I have since found the answer and forgot to update it here. Thanks again.

On an unrelated question, but related to IBM cloud. I have been trying to deploy Slackin to IBM cloud but haven't found any documentation or instructions avatsaev/slackin#3
Do you have knowledge with Slackin run in IBM Cloud?

@tardieu
Copy link
Member

tardieu commented Jul 17, 2018

Great! Could you sketch your workaround here for others with the same issue and so that we can update the tutorial?

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

No branches or pull requests

2 participants