ibmtjbot / tjbot

IBM TJBot
https://ibmtjbot.github.io
Apache License 2.0
481 stars 282 forks source link

Error about credentials #112

Closed victorpiedra closed 5 years ago

victorpiedra commented 5 years ago

Could you help me solve this error, please.

I need a user and password but in IBM Blumix just generate a “apikey”

try deleting the user part and password, replacing it with the apikey but generating the same error

pi@Robotix:~/tjbot/recipes/conversation $ sudo node conversation.js verbose: TJBot initializing microphone verbose: TJBot initializing LED verbose: TJBot initializing servo motor on PIN 7 verbose: TJBot initializing Camera verbose: TJBot initializing assistant service verbose: TJBot initializing speech_to_text service verbose: TJBot initializing text_to_speech service verbose: TJBot initializing visual_recognition service /home/pi/tjbot/recipes/conversation/node_modules/tjbot/lib/tjbot.js:542 throw new Error( ^

Error: Missing authentication credentials for tone_analyzer service: username/password or apikey are required. at TJBot._createServiceAPI (/home/pi/tjbot/recipes/conversation/node_modules/tjbot/lib/tjbot.js:542:19) at new TJBot (/home/pi/tjbot/recipes/conversation/node_modules/tjbot/lib/tjbot.js:116:18) at Object. (/home/pi/tjbot/recipes/conversation/conversation.js:40:10) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Function.Module.runMain (module.js:694:10) at startup (bootstrap_node.js:204:16) at bootstrap_node.js:625:3

ing-jlgonzalezb commented 5 years ago

I have the same error...

111

hiqdare commented 5 years ago

Missing authentication credentials for tone_analyzer service: username/password or apikey I submitted a pull request to fix the error. The problem is, in the config_default.json it is saying api_key instead of apikey, which I fixed and submitted in a separate pull request. also changed for STT and TTS from username and password to apikey and url, which is the new information required for newly instantiated services.

Ypsilom commented 5 years ago

Actually, I still have the error after updating STT and TTS to apikey and url instead of password and username - is there anything else which needs to be changed?

hiqdare commented 5 years ago

you also need to change api_key at visial recognition to apikey

Ypsilom notifications@github.com schrieb am So. 11. Nov. 2018 um 23:44:

Actually, I still have the error after updating STT and TTS to apikey and url instead of password and username - is there anything else which needs to be changed?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ibmtjbot/tjbot/issues/112#issuecomment-437712320, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-p-jQnKQ5FS6JRZ-Heve3qQInrQIdZks5uuKhBgaJpZM4YCymq .

jweisz commented 5 years ago

IAM authentication issues were resolved in https://github.com/ibmtjbot/tjbot/pull/124, which will be merged into master this week.