ERROR CON DIALOGFLOW
See original GitHub issueHace un tiempo trabajaba en este boot, y lo deje por un periodo ahora que lo vuelvo a retomar tengo un error ya actualice a la ultima version y me manda el siguiente error, a alguien le paso lo mismo y que me pueda ayudar plis
(node:12920) UnhandledPromiseRejectionWarning: TypeError: nanoid is not a function
at detectIntent (C:\laragon\www\bot-whatsapp-main\adapter\diaglogflow.js:35:46)
at getDataIa (C:\laragon\www\bot-whatsapp-main\adapter\diaglogflow.js:70:5)
at C:\laragon\www\bot-whatsapp-main\adapter\index.js:61:9
at new Promise (<anonymous>)
at getIA (C:\laragon\www\bot-whatsapp-main\adapter\index.js:55:28)
at bothResponse (C:\laragon\www\bot-whatsapp-main\controllers\flows.js:19:24)
at Client.<anonymous> (C:\laragon\www\bot-whatsapp-main\app.js:63:32)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use node --trace-warnings ...
to show where the warning was created)
(node:12920) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)
(node:12920) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Issue Analytics
- State:
- Created a year ago
- Comments:13 (3 by maintainers)
Top GitHub Comments
Hola, soy nuevo aqui, me daba un error en esta linea con dialogflow:
TypeError: Cannot read properties of undefined (reading ‘payload’) at detectIntent (C:\vcarchivos\leifernandez\bot-whatsapp\adapter\diaglogflow.js:59:39)
Pero como la costante customPayload, luego no se usa, simplemente comenté la linea y con eso ya esta funcionando. tengo node 16.13.2
Hola, soy nuevo aqui, me daba un error en esta linea con dialogflow:
TypeError: Cannot read properties of undefined (reading ‘payload’) at detectIntent (E:\bot-whatsapp-main\adapter\diaglogflow.js:59:39)
Pero como la costante customPayload, luego no se usa, simplemente comenté la linea y con eso ya esta funcionando. tengo node 16.16.0 (tengo el mismo problema)