Closed BzowK closed 8 months ago
Hello BzowK. We are actually in the process of updating the code and instructions. As you mentioned, there are information that is outdated, code that does not work anymore, and we are working on this. Feel free to check back again in the near future.
Also, you may want to remove your API credentials from this post, since this is open for everyone to see.
Thanks - I changed the ending part of them but will blank them all out just in case. Appreciate it!
hey, i am getting the same error
Closing as outdated
Hey All -
Followed the instructions to set everything up (as best I could - they were wildly outdated) and when executing "sudo node conversation.js" everything starts correctly and correctly types the command I speak however once one is recognized, it errors out. Below is the error, my config, and what I've tried (which includes potential solutions from other similar issues.)
The Error info: Hello from TJBot! info: Initializing TJBot with microphone,speaker,led_neopixel,servo You can ask me to introduce myself or tell you a joke. Try saying, "Johnny Five, please introduce yourself" or "Johnny Five, what can you do?" You can also say, "Johnny Five, tell me a joke!" Say 'stop' or press ctrl-c to exit this recipe. info: TJBot heard: "tell me a joke" info: TJBot heard: "Johnny five tell me a joke" error: error creating session for assistant service. please check that tj.configuration.converse.assistantId is defined. /home/pi/tjbot/recipes/conversation/node_modules/ibm-cloud-sdk-core/lib/request-wrapper.js:224 var error = new Error(); ^
Not Found: Resource not found at RequestWrapper.formatError (/home/pi/tjbot/recipes/conversation/node_modules/ibm-cloud-sdk-core/lib/request-wrapper.js:224:21) at /home/pi/tjbot/recipes/conversation/node_modules/ibm-cloud-sdk-core/lib/request-wrapper.js:212:25 at processTicksAndRejections (node:internal/process/task_queues:94:5) { statusText: 'Not Found', status: 404, code: 404, body: '{"error":"Resource not found","code":404}', headers: { 'access-control-allow-origin': '*', 'access-control-allow-methods': 'GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS', 'access-control-allow-headers': 'Content-Type, Content-Length, Authorization, X-Watson-Authorization-Token, xxxxxxxxxxxxxx-OUT, X-Watson-UserInfo, X-Watson-Learning-Opt-Out, X-Watson-Metadata', 'access-control-max-age': '3600', 'content-security-policy': "default-src 'none'", 'x-dns-prefetch-control': 'off', 'x-frame-options': 'SAMEORIGIN', 'strict-transport-security': 'max-age=15552000; includeSubDomains, max-age=31536000; includeSubDomains;', 'x-download-options': 'noopen', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'content-type': 'application/json; charset=utf-8', 'content-length': '41', 'x-dp-watson-tran-id': 'xxxxxxxxxxxxxx', 'x-request-id': 'xxxxxxxxxxxxxx', 'x-global-transaction-id': 'xxxxxxxxxxxxxx', server: 'watson-gateway', 'x-edgeconnect-midmile-rtt': '18', 'x-edgeconnect-origin-mex-latency': '37', date: 'Wed, 08 Feb 2023 17:21:54 GMT', connection: 'close' } }
My Setup config.js
ibm-credentials.env
What I've Tried
Thanks Guys!