VidyasagarMSC / WatBot

An Android ChatBot powered by IBM Watson Services (Assistant V1, Text-to-Speech, and Speech-to-Text with Speaker Recognition) on IBM Cloud.
Other
72 stars 53 forks source link

Watson not communicating #8

Closed Mark0l closed 6 years ago

Mark0l commented 6 years ago

Hello, firstly thank you for your app. When I "Run" app to my phone, I open it and bot does not welcome me nor answers my questions. Have you ran into that kind of problem? I just edited the credentials.

VidyasagarMSC commented 6 years ago

@Mark0l did you create or upload a conversation dialog including intents & entities??

Mark0l commented 6 years ago

I created dialog myself and also tried using built-in "Car Dashboard - Sample" dialog. When I run espresso, this is what I get (pasted topic relevant errors):

D/OkHttp: <-- 401 Not Authorized https://gateway.watsonplatform.net/conversation/api/v1/workspaces/74473bd5-da6e-4ea9-8526-30bfbc00ee41/message?version=2017-05-26 (193ms, unknown-length body)
E/WatsonService: POST https://gateway.watsonplatform.net/conversation/api/v1/workspaces/74473bd5-da6e-4ea9-8526-30bfbc00ee41/message?version=2017-05-26, status: 401, error: Not Authorized

I run this test on virtual phone. I verified credentials many times,

VidyasagarMSC commented 6 years ago

@Mark0l I just verified the code and everything is working as expected. Can you try deleting the credentials in the Watson service on IBM Cloud and re-add new credentials.

Hope this works. I am closing this for now as it has nothing to do with the code.