0
這是我面對的錯誤。我正在使用ibm botkit-middleware。這可能是錯誤,應該如何解決?使用facebook chatbot的IBM watson對話錯誤問題
Fatal TypeError: Cannot read property 'output' of undefined
at Object.<anonymous> (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\bot-facebook.js:45:32)
at Object.<anonymous> (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\botkit\lib\CoreBot.js:753:28)
at Object.Botkit.botkit.trigger (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\botkit\lib\CoreBot.js:779:49)
at C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\botkit\lib\CoreBot.js:866:32
at Object.bot.findConversation (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\botkit\lib\Facebook.js:103:13)
at C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\botkit\lib\CoreBot.js:862:21
at next (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\ware\lib\index.js:82:27)
at C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\wrap-fn\index.js:121:18
at C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\botkit-middleware-watson\lib\middleware\index.js:121:9
at tryCatcher (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\bluebird\js\release\promise.js:638:18)
at Promise._resolveCallback (C:\Users\User\Desktop\botkit-middleware-master3\examples\multi-bot\node_modules\bluebird\js\release\promise.js:432:57)
所以錯誤可能發生在工作區ID,conversation_name和密碼?什麼是conversation_url?我最後一個版本的botkit沒有這個。我應該從哪裏得到conversation_url? –
您可以從您創建的對話服務中獲取所有內容。 –
仍然是odesnt作品。沒有錯誤信息,只是卡在 nfo:**沒有指定永久存儲方法!當進程關閉時數據可能會丟失。 nfo:**爲Messenger平臺提供webhook端點:http:// MY_HOST:undefined/facebook/receive –