Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

No response from webhook #410

Open
tLabruna opened this issue Nov 8, 2020 · 3 comments
Open

No response from webhook #410

tLabruna opened this issue Nov 8, 2020 · 3 comments

Comments

@tLabruna
Copy link

tLabruna commented Nov 8, 2020

This is the code I have in my server:

const express = require('express');
const bodyParser = require('body-parser');

const appExpress = express().use(bodyParser.json());

const {
  dialogflow,
  Image,
} = require('actions-on-google')

const app = dialogflow()

appExpress.post('/hook', express.json() ,(req, res) => {

  app.intent('MyIntent', conv => {
    conv.ask('Hi, how is it going?')
  });

});

appExpress.listen(3333, ()=>console.log("Server is live at port 3333"));

When I run this, it returns no errors (I see the message "server is live..") and also when I send a message to my bot with the intent "MyIntent" I get no error, but also no response..

If I look at the Diagnostic Info, under the Fulfillment Status there is this error:

Webhook call failed. Error: DEADLINE_EXCEEDED.

What am I doing wrong?

@tLabruna
Copy link
Author

tLabruna commented Nov 9, 2020

Anybody?

@leowilbur
Copy link

I have the same issue, too

@kolban-google
Copy link

When I look at your code, I don't see it matching any of the samples illustrated here ...

https://developers.google.com/assistant/conversational/df-asdk/reference/nodejsv2/overview#example_self-hosted_express_server_simple

Looking at the code fragment you have shown, I'm not seeing a relationship between the call to app.intent() and the req/res parameters passed in the POST request. I don't see how a call to conv.ask() would result in a response being returned. My suggestion would be to study the link above from the Google docs and associate your express server with the app and try again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants