{"action":"opened","issue":{"url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/95","repository_url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs","labels_url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/95/comments","events_url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/95/events","html_url":"https://github.com/actions-on-google/actions-on-google-nodejs/issues/95","id":296102557,"number":95,"title":"TypeError: this.response_.append is not a function","user":{"login":"theunreal","id":6171883,"avatar_url":"https://avatars3.githubusercontent.com/u/6171883?v=4","gravatar_id":"","url":"https://api.github.com/users/theunreal","html_url":"https://github.com/theunreal","followers_url":"https://api.github.com/users/theunreal/followers","following_url":"https://api.github.com/users/theunreal/following{/other_user}","gists_url":"https://api.github.com/users/theunreal/gists{/gist_id}","starred_url":"https://api.github.com/users/theunreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theunreal/subscriptions","organizations_url":"https://api.github.com/users/theunreal/orgs","repos_url":"https://api.github.com/users/theunreal/repos","events_url":"https://api.github.com/users/theunreal/events{/privacy}","received_events_url":"https://api.github.com/users/theunreal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-10T13:53:51Z","updated_at":"2018-02-10T13:53:51Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use `actions-on-google-nodejs` and Dialogflow, but when the event is triggered my bot won't respond and I get the following error:\r\n\r\n```\r\nerror: Sending 500 (\"Server Error\") response:\r\n TypeError: this.response_.append is not a function\r\n    at DialogflowApp.doResponse_ (my-proj\\node_modules\\actions-on-google\\assistant-app.js:2202:20)\r\n    at DialogflowApp.tell (my-proj\\node_modules\\actions-on-google\\dialogflow-app.js:740:17)\r\n    at makeName (my-proj\\api\\controllers\\VersionController.js:62:13)\r\n    at DialogflowApp.invokeIntentHandler_ (my-proj\\node_modules\\actions-on-google\\assistant-app.js:2078:31)\r\n    at DialogflowApp.handleRequestAsync (my-proj\\node_modules\\actions-on-google\\assistant-app.js:535:19)\r\n    at DialogflowApp.handleRequest (my-proj\\node_modules\\actions-on-google\\assistant-app.js:424:10)\r\n    at Object.getHookBugs (my-proj\\api\\controllers\\VersionController.js:69:11)\r\n    at wrapper (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\lodash\\lib\\index.js:3250:19)\r\n    at routeTargetFnWrapper (local\\AppData\\Roaming\\npm\\node_modules\\sails\\lib\\router\\bind.js:181:5)\r\n    at callbacks (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:164:37)\r\n    at param (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:138:11)\r\n    at param (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:135:11)\r\n    at pass (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:145:5)\r\n    at nextRoute (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:100:7)\r\n    at callbacks (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:167:11)\r\n    at alwaysAllow (local\\AppData\\Roaming\\npm\\node_modules\\sails\\lib\\hooks\\policies\\index.js:224:11)\r\n    at routeTargetFnWrapper (local\\AppData\\Roaming\\npm\\node_modules\\sails\\lib\\router\\bind.js:181:5)\r\n    at callbacks (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:164:37)\r\n    at param (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:138:11)\r\n    at param (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:135:11)\r\n    at pass (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:145:5)\r\n    at nextRoute (local\\AppData\\Roaming\\npm\\node_modules\\sails\\node_modules\\@sailshq\\express\\lib\\router\\index.js:100:7)\r\n```\r\n\r\nmy NodeJS code is simply this (I'm using SailsJS):\r\n\r\n```\r\ngetHookBugs: function(req,res) {\r\n\r\n    // a. the action name from the make_name Dialogflow intent\r\n    const NAME_ACTION = 'listBugs';\r\n    \r\n      const app = new App({request: req, response: res});\r\n\r\n\r\n      function makeName (app) {\r\n        app.tell('Got here!');\r\n      }\r\n      // d. build an action map, which maps intent names to functions\r\n      let actionMap = new Map();\r\n      actionMap.set(NAME_ACTION, makeName);\r\n\r\n\r\n      app.handleRequest(actionMap);\r\n  }\r\n\r\n```\r\n\r\n"}}
{"actor":{"display_login":"theunreal"}}