watson-developer-cloud / speech-to-text-nodejs

:microphone: Sample Node.js Application for the IBM Watson Speech to Text Service
https://speech-to-text-demo.ng.bluemix.net
Apache License 2.0
1.11k stars 706 forks source link

Fix the IAM access issues #266

Closed leibaogit closed 3 years ago

leibaogit commented 3 years ago

When I run the Watson speech2text demo in my local and cloud CF, and encountered several issues related to the IAM authentication. Part of the issues are recorded in these two issues:

https://github.com/watson-developer-cloud/speech-to-text-nodejs/issues/265 https://github.com/watson-developer-cloud/speech-to-text-nodejs/issues/264

And finally I resolved the issues by this code change.

Hope you can review and merge the change.

BTW, I didn't test regression on the watson-token access, but I think this already deprecated.

Thanks, Bali

jeff-arn commented 3 years ago

@apaparazzi0329 can you review this and the issue and see if it can be merged?