{"action":"opened","issue":{"url":"https://api.github.com/repos/dialogflow/dialogflow-fulfillment-nodejs/issues/184","repository_url":"https://api.github.com/repos/dialogflow/dialogflow-fulfillment-nodejs","labels_url":"https://api.github.com/repos/dialogflow/dialogflow-fulfillment-nodejs/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/dialogflow/dialogflow-fulfillment-nodejs/issues/184/comments","events_url":"https://api.github.com/repos/dialogflow/dialogflow-fulfillment-nodejs/issues/184/events","html_url":"https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/184","id":381873542,"node_id":"MDU6SXNzdWUzODE4NzM1NDI=","number":184,"title":"Unable to add the caroulel list due to ERROR: Unknown response type: ","user":{"login":"srikanthsunkari","id":8381508,"node_id":"MDQ6VXNlcjgzODE1MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/8381508?v=4","gravatar_id":"","url":"https://api.github.com/users/srikanthsunkari","html_url":"https://github.com/srikanthsunkari","followers_url":"https://api.github.com/users/srikanthsunkari/followers","following_url":"https://api.github.com/users/srikanthsunkari/following{/other_user}","gists_url":"https://api.github.com/users/srikanthsunkari/gists{/gist_id}","starred_url":"https://api.github.com/users/srikanthsunkari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srikanthsunkari/subscriptions","organizations_url":"https://api.github.com/users/srikanthsunkari/orgs","repos_url":"https://api.github.com/users/srikanthsunkari/repos","events_url":"https://api.github.com/users/srikanthsunkari/events{/privacy}","received_events_url":"https://api.github.com/users/srikanthsunkari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-17T15:37:05Z","updated_at":"2018-11-17T15:37:05Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n    \tI am trying to add a BrowseCarousel/Carousel for one of my search intent using WebHookClient but  facing an error saying below, \r\n\r\n### Error:\r\n\r\n`\tERROR:: Error: Unknown response type: \"{\"items\":[{\"title\":\"Title of item 1\",\"openUrlAction\":{\"url\":\"http://www.google.com\"},\"description\":\"Description of item 1\",\"footer\":\"Item 1 footer\",\"image\":{\"url\":\"https://developers.google.com/actions/images/badges/XPM_BADGING_GoogleAssistant_VER.png\",\"accessibilityText\":\"a11yText\"}},{\"title\":\"Title of item 2\",\"openUrlAction\":{\"url\":\"http://www.google.com\"},\"description\":\"Description of item 2\",\"footer\":\"Item 2 footer\",\"image\":{\"url\":\"https://developers.google.com/actions/images/badges/XPM_BADGING_GoogleAssistant_VER.png\",\"accessibilityText\":\"a11yText\"}}]}\"`\r\n\r\n\t\r\n```\r\nconst {\r\n  Image,\r\n  BrowseCarousel,\r\n  BrowseCarouselItem,\r\n} = require('actions-on-google');\r\n\r\nrequestpromisenative.get(url + pathString)\r\n  .then(jsonBody => {\r\n    var jsonData = JSON.parse(jsonBody);\r\n    console.log('Response is completed ' + jsonData);\r\n    agent.add(jsonData.results.length + ' Search Results Found');\r\n    var array = [];\r\n    for (var j = 0; j < jsonData.results.length; j++) {\r\n      var data = jsonData.results[j];\r\n      var title = data.title;\r\n      array.push(generateCardData(agent,\r\n        data.title,\r\n        data.images.values[0].link,\r\n        data.description));\r\n    }\r\n    // // Create a browse carousel\r\n    agent.add(new BrowseCarousel({\r\n      items: array\r\n    }));\r\n  });\r\n\r\n// generate BrowseCarouselItem \r\nfunction generateCardData(agent, title, imageUrl, text) {\r\n  var linkUrl = 'https://www.google.in';\r\n  return new BrowseCarouselItem({\r\n    title: title,\r\n    url: linkUrl,\r\n    description: text,\r\n    image: new Image({\r\n      url: 'https://developers.google.com/actions/images/badges/XPM_BADGING_GoogleAssistant_VER.png',\r\n      alt: title\r\n    })\r\n  });\r\n}\r\n```\r\nI have followed #36, but no luck please let me know if i am missing any additional information. Please let me know if any additional info is required. \r\n"}}
{"actor":{"display_login":"srikanthsunkari"}}