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.

this.nlu error with Google Assistant Requests

See original GitHub issue

I got this error:

TypeError: this.nlu.getIntentName is not a function
    at GoogleAction.getIntentName (/var/task/node_modules/jovo-framework/lib/platforms/googleaction/googleAction.js:66:25)
    at Jovo.getIntentName (/var/task/node_modules/jovo-framework/lib/jovo.js:289:57)
    at Promise (/var/task/node_modules/jovo-framework/lib/routing.js:54:50)
    at new Promise (<anonymous>)
    at Routing.route (/var/task/node_modules/jovo-framework/lib/routing.js:24:16)
    at loadUserDataOnRequest.then.then.then.then (/var/task/node_modules/jovo-framework/lib/jovo.js:174:38)
    at <anonymous>

…when testing my function with a Google Assistant Request. I think the format of the requests from Google Assistant must have changed because my old test worked. I am using the Dialogflow v2 API, but have for the life of this particular project, so that hasn’t changed.

On the Google Assistant Simulator side, the logs say MalformedResponse: 'final_response' must be set because the app logic is returning null.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisaspringercommented, May 15, 2018

Testing locally with node-lambda and my app logic when pushed to Lambda, I’m getting further now in the logic since I’m now using the above correct request data. But it appears that that this.setSessionAttribute('intentData') works with Alexa requests but not Dialogflow ones. If I log out this.getSessionAttributes()after using the setter above it’s just an empty object.

Thanks again, @aswetlow .

0reactions
jankoenigcommented, May 23, 2018

Closing this now. Please reopen it if you run into any problems. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Natural language understanding best practices
This page contains some Natural Language Understanding (NLU) best practices and recommendations for building high quality Actions.
Read more >
Fix issues with “Hey Google” - Google Assistant Help
If your Google Assistant doesn't work or respond to “Hey Google” on your Android device, make sure Google Assistant, Hey Google and Voice...
Read more >
How to implement local fulfillment for Google Assistant actions ...
Problem statement I've been getting into Actions on Google ... Architecturally, the Dialogflow NLU agent sends a POST request to the server ...
Read more >
Going beyond 'Hey Google': building a Rasa-powered Google ...
But what about handling more complex conversations? If you used Google Assistant you have probably noticed that every request has to start with ......
Read more >
Newest 'watson-nlu' Questions - Stack Overflow
I'm just starting with cURL, I'm using Watson Natural Language Understanding (NLU) Service.. the following line gives me error code:400 "Invalid Request, ...
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