question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR CON DIALOGFLOW

See original GitHub issue

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 (<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:closed
  • Created a year ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mpiresnabaiscommented, Jun 3, 2022

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

1reaction
gian-altcommented, Jul 23, 2022

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Dialogflow Documentation - Google Cloud
Issue. Received PERMISSION_DENIED response for API call. Solution. Ensure you have set up (CX, ES) authentication and roles correctly.
Read more >
How To Fix Dialogflow Error When Deploying Google Actions ...
Voiceflow is an amazing no-code Voice Design tool, that allows Voice UI Designers like myself to author voice apps and deploy them to...
Read more >
Troubleshoot Google Cloud Dialogflow CX and ES integrations
Common Google Cloud Dialogflow CX or ES errors. You may encounter Google Cloud Dialogflow service errors if a high number of interactions take...
Read more >
Getting Error While Trying to Enable Dialogflow Messenger
1 Answer 1 · On the Dialogflow CX Agent page, go to "Manage" —> "Integrations". · Click "Connect" in the "Dialogflow Messenger" panel....
Read more >
Dialogflow distilled: On error handling · AI Virtual Voice ...
In this article, we'll discuss how Dialogflow treats error handling and how it can be improved with some code in the fulfillment (which, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found