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.

BrowseCarousel not working

See original GitHub issue

When using BrowseCarousel as a response the action force closes showing ‘My test app isn’t responding right now. Try again soon’ Given below the code,

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

const {
  dialogflow,
  BasicCard,
  BrowseCarousel,
  BrowseCarouselItem,
  Button,
  Carousel,
  Image,
  LinkOutSuggestion,
  List,
  MediaObject,
  Suggestions,
  SimpleResponse,
} = require('actions-on-google');
const app = dialogflow();

// This is where you put your code



app.intent('myaction', (conv) => {

  conv.ask('This is a browse carousel example.');
  // Create a browse carousel
  return conv.ask(new BrowseCarousel({
    items: [
      new BrowseCarouselItem({
        title: 'Title of item 1',
        url: 'google.com',
        description: 'Description of item 1',
        image: new Image({
          url: 'IMG_URL.com',
          alt: 'Image alternate text',
        }),
        footer: 'Item 1 footer',
      }),
      new BrowseCarouselItem({
        title: 'Google Assistant',
        url: 'google.com',
        description: 'Google Assistant on Android and iOS',
        image: new Image({
          url: 'IMG_URL_Assistant.com',
          alt: 'Image alternate text',
        }),
        footer: 'More information about the Google Assistant',
      }),
    ],
  }));

  console.log('hey');
})
express().use(bodyParser.json(), app).listen(3000);

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Flekercommented, Jun 19, 2019

Image URLs should be loaded over HTTPS, so that is expected. This may be more of a docs bug. I’ll file an issue.

0reactions
ThatZivcommented, Aug 8, 2019

The issue for me was that I never provided a URL prop for each item

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap 4 Carousel sliders not working - Stack Overflow
Use the following working carousel slider template as a starting point (including all of the CDN files in the exact same order you...
Read more >
HELP: Carousel NOT working in Chrome
Yesterday I installed the Carousel feature on BC. Things are working fine in all browsers with the exception of Chrome. It does load...
Read more >
Carousel · Bootstrap v5.2
A slideshow component for cycling through elements—images or slides of text—like a carousel.
Read more >
Carousel not working in Bootstrap 5 (SOLVED) - YouTube
Carousel not working in Bootstrap 5 (SOLVED) ; Professional CSS Course: https://bytegrad.com/professional-css... ; Professional JavaScript ...
Read more >
Browsing carousel - Conversation Design | Google Developers
Swipe: Slide the carousel to reveal different cards. Tap: Tapping an item opens a browser, displaying the linked page. The mic doesn't re-open ......
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