-
Notifications
You must be signed in to change notification settings - Fork 283
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
TJBot : Conversation Recipe showing error that WorkspaceID is not provided #161
Comments
You need to fill in the Skill ID here. I have documented it here where you can find this value: https://aibot.liew.nl/en/preparations/ibm-cloud |
Thank you @chunyianliew . I still see the error as below, even after using the SkillID as WorkspaceId.. not exactly sure what i'm missing. === Here is my how my config.js looks like exports.workspaceId = '03axxxxx-71e2-4a54-84cc-235b20xxxxxx'; // Set this to false if your TJBot does not have a camera. // set up TJBot's configuration |
Please check that the Watson Assistant url configured in the config.js file in the recipes/conversation directory contains the same url as shown in the API details of your IBM Cloud Watson Assistant account. In the latest version of config.default.js file i see the following line: When I login I see the following url (for location London) starting with I experienced issues with changed url end-points a few months ago when using node-red, your issue might be related: chunyianliew/node-red-contrib-tjbot#1 According to the list in the comment below the url should be https://gateway-lon.watsonplatform.net/assistant/api instead for the London location: jeancarl/node-red-contrib-tjbot#11 (comment) |
Maybe you need to set workspace_id In stead of workspaceId?
Sent from Yahoo Mail for iPhone
On Sunday, September 6, 2020, 11:39 AM, erramilli <[email protected]> wrote:
Thank you @chunyianliew . I still see the error as below, even after using the SkillID as WorkspaceId.. not exactly sure what i'm missing.
===
You can also say, "Watson, tell me a joke!"
verbose: TJBot initializing microphone
info: TJBot heard: Watson
error: the assistant service returned an error. message=Missing required parameters: workspace_id, stack=Error: Missing required parameters: workspace_id
at Object.getMissingParams (/home/pi/Desktop/tjbot/recipes/conversation/node_modules/ibm-cloud-sdk-core/lib/helper.js:94:11)
at AssistantV1.message (/home/pi/Desktop/tjbot/recipes/conversation/node_modules/watson-developer-cloud/assistant/v1.js:95:50)
at TJBot.converse (/home/pi/Desktop/tjbot/recipes/conversation/node_modules/tjbot/lib/tjbot.js:719:21)
at /home/pi/Desktop/tjbot/recipes/conversation/conversation.js:53:12
Here is my how my config.js looks like
exports.workspaceId = '03axxxxx-71e2-4a54-84cc-235b20xxxxxx';
// Set this to false if your TJBot does not have a camera.
exports.hasCamera = false;
// set up TJBot's configuration
exports.tjConfig = {
log: {
level: 'verbose'
},
// Changing the robot name will change the attention word
// robot: {
// name: 'tee jay bot'
// }
};
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Still not working... .. Based on @weirending suggestion I have added workspaceid also exports.workspaceId = '03acb137-71e2-XXXX-XXXX-235b20cbxxxx; // set up TJBot's configuration |
Here is the message I see...... still info: TJBot heard: Watson |
Can you please share the full command line you use to start the converse recipe? Please also include the output of the pwd command to determine from which directory the script is being called. Please also share the absolute path to the config.js file. |
here is the command I'm using.. config.js is in /home/pi/Desktop/tjbot/recipes/conversation output of pwd : /home/pi/Desktop/tjbot/recipes/conversation |
Your setup looks good so I took a look at the documentation: https://cloud.ibm.com/apidocs/assistant-icp
So can you please change the url for Watson in the config.js file to |
@chunyianliew you are suggesting to change like this ?? ... didn't work. Also, Thank you so much for your quick responses. exports.credentials = {}; }; |
No, please use: url: 'https://api.us-south.assistant.watson.cloud.ibm.com/assistant/api/' I suspect that the full url shown in the IBM cloud administration area is the V2 url including the reference to the assistant as mentioned on the documentation. That additional part was not used in V1. If this doesn't work out I will hookup a tjbot tomorrow and try it myself tomorrow and let you know if I can it get it to work with the sample conversation recipe. I am located in the Netherlands and it is getting late... |
@chunyianliew : still same issue.. I'm suspecting something is stopping it from loading the workspaceid from the config.js ... however, as the speechtotext portion is working .. I must believe it is infact able to locate the config.js file and read the contents.. |
That's also why I requested to double check the location of the config.js file. Sometimes the error messages returned by the IBM cloud js node modules do not correctly represent the actual error, that is speaking from my own personal experience with the tjbot project. I will try to see if I run into the same issue tomorrow. |
@erramilli I have installed the tjbot recipes and I managed to get it to work. I did ran into two known issues. One because I am using a Raspberry Pi 4 and the other one because of outdated tjbot node module code: My suggestion would be to delete your current conversation directory and start over again and share the output of the install process:
With regard to the url's used in the config.js file, here are the URL's that worked for me: Please also change the debug level in config.js from verbose to debug and share the startup log with us for further investigation: This is is how my startup log looks like:
|
@chunyianliew Thank you so much.. One thing I noticed when I tried to do a npm install .. I noticed this which I missed last time. is it posssible this is the root cause of my problem ? |
It wouldn't hurt to use a supported Node version when troubleshooting issues like you have run into: |
@chunyianliew : is it possible to send your config.js (possibly changing the IDs a little bit), I know it may be asking for too much.. |
@chunyianliew : Thank you so so much for your help and prompt responses.. it turns out to be dumb mistake on my side as I was looking at the Config.js file and program was looking for just 'config' i.e with no extension. The conversation works fine now. I'm so excited now 👍 . |
@erramilli oh, really? That is a bit strange, because the config file is supposed to be named config.js. |
I have followed everything in the documentation and this onething seems to be confusing and frustrating at the same time.
As instructed I have
Configured all the 3 services (STT , TexttoSpeech, Watson Assistant).
Imported the Workplace json into the Skill in Watson Assistant.
I have updated all the API Key etc.. in the the Config.Js
Ran SUDO node conversation.js
The program starts...recognizes everything I say... (basically proves my STT is working..right ?)
The moment I utter the word 'Watson' it crashes with a message a required parameter Workspace_id is not provided
When I go to WatsonAssistant-->skill --> API Details .. I don't really see something with a name WorkSpaceID .
All I see is 'Legacy Workspace URL' .. If not where can I find the workspaceID ?..
Are these two the same ?
The text was updated successfully, but these errors were encountered: