Skip to content

calling chatbot using apiai.textRequest() genrates error in webhook #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mInzamamMalik opened this issue Oct 24, 2018 · 0 comments
Open

Comments

@mInzamamMalik
Copy link

when using form dialogflow test console it is working fine, but when i call the chatbot using this library it say this error on webhook:

my dialogflow chatbot is on v1, and I'm using dialogflow fulfilment library in webhook

Cannot read property 'source' of undefined
    at V1Agent.processRequest_ (/user_code/node_modules/dialogflow-fulfillment/src/v1-agent.js:104:77)
    at new WebhookClient (/user_code/node_modules/dialogflow-fulfillment/src/dialogflow-fulfillment.js:238:17)
    at exports.webhook.functions.https.onRequest (/user_code/index.js:506:20)
    at cloudFunction (/user_code/node_modules/firebase-functions/lib/providers/https.js:57:9)
    at /var/tmp/worker/worker.js:689:7
    at /var/tmp/worker/worker.js:673:9
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant