ERROR CON DIALOGFLOW
See original GitHub issueIssue Description
Hace 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 (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 10 months ago
- Comments:13 (3 by maintainers)
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)