我一直在关注一个关于Udemy的课程,关于如何为网站创建一个聊天机器人。当尝试向Dialogflow发送POST请求以确认集成是否成功时,出现了问题。下面是我的代码:const dialogflow = require('dialogflow', '@google-cloud/dialogflowrejection.To terminate the node process on unhandled prom
(node:14104) UnhandledPromiseRejectionWarning: Unhandled promiserejection (rejectionid: 1): Error:"callback" argument must be a function
(node:14104) [DEP0018] DeprecationWarning: Unhandled promise rejectionsIn the future, promise rej
但是它没有抓住它process.on('unhandledRejection', (error, p) => { //I added thisBefore this I would just get UnhandledPromiseRejectionWarning: Unhandled promiserejection without knowingwhich promise wa