-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fatal TypeError: cannot read property 'output' of undefined #1
Comments
I am receiving the same error. Please advise. |
can you try taking out the index here? Line 30: |
Hi Chris, great tutorial ! I'm facing the same error. Tried removing the index but it still isn't working. |
Check if your region is using IAM auth rather than standard username;password as well.. I just added a bit of code to |
I'm using the IAM auth. |
If it's the error above, then the call to Watson is what's not working. Can you share what you are putting in the |
url:'https://gateway-wdc.watsonplatform.net/assistant/api' Here's how the entire code looks: 'use strict' require('dotenv').config({silent: true}); var middleware = require('botkit-middleware-watson')({ var TwilioSMSBot = require('botkit-sms'); let bot = controller.spawn({}) controller.setupWebserver('5500', function (err, webserver) { controller.hears(['.*'], 'message_received', function (bot, message) { Note: my local server is at port 5500. |
@Abishek09 did you run |
@desmarchris Hey Chris, |
@desmarchris Thanks for this! I was led here by the YouTube video 'Watson Conversation - Integrations Tutorial' However, I am currently running into some issues...
C:\Users\dnort\Desktop\sms-bot>node app.js
Initializing Botkit v0.5.4
info: ** No persistent storage method specified! Data may be lost when process shuts down.
info: *> Listening on port 8000
info: *> Serving webhook endpoint DESKTOP-7T4STH1:8000/sms/receive
TwilioSMSBot is online!
info: => Got a message hook
Fatal TypeError: Cannot read property 'output' of undefined
at C:\Users\dnort\Desktop\sms-bot\app.js:30:45
at C:\Users\dnort\Desktop\sms-bot\node_modules\botkit-middleware-watson\lib\middleware\index.js:121:9
at tryCatcher (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:638:18)
at Promise._resolveCallback (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:432:57)
at Promise._settlePromiseFromHandler (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:524:17)
at Promise._settlePromise (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\promise.js:689:18)
at Async._drainQueue (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (C:\Users\dnort\Desktop\sms-bot\node_modules\bluebird\js\release\async.js:17:14)
How would you suggest I resolve this?
Thank You
The text was updated successfully, but these errors were encountered: