Skip to content
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

Tutorial testing google request from lambda fails #32

Open
JPHaus opened this issue Mar 16, 2019 · 1 comment
Open

Tutorial testing google request from lambda fails #32

JPHaus opened this issue Mar 16, 2019 · 1 comment

Comments

@JPHaus
Copy link

JPHaus commented Mar 16, 2019

In the section right before here where you copy the json test and use it to test if the lambda function works with google I'm seeing the following error:

{ "errorMessage": "Can't handle request object.", "errorType": "Error", "stackTrace": [ "App.handle (/var/task/node_modules/jovo-core/dist/src/BaseApp.js:130:23)", "<anonymous>" ] }

Also, you have to remove all of the backslashes in it first otherwise it complains and won't let you save it.

@dominik-meissner
Copy link
Contributor

This usually happens when you did not add the Google Assistant (or Google Dialogflow) integration in your app.js.
Try adding:

const { GoogleAssistant } = require('jovo-platform-googleassistant');
and
app.use(new GoogleAssistant());

there and this should work.

Dialogflow is:
const { DialogFlow } = require('jovo-platform-dialogflow');
and
app.use(new DialogFlow());

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

2 participants