Failed fetching stories because the server is down

See original GitHub issue

I am running into an issue after switching to using the “chrome.docker” target.

When I try to run the loki test command (after ensuring the storybook server has been started and is running), image I get the following error: image

However, if I build storybook, and run loki --reactUri file:./build-storybook, it works fine.

This is my current loki configuration:

  "loki": {
    "chromeTolerance": 3,
    "configurations": {
      "chome.largeScreen": {
        "target": "chrome.docker",
        "width": 1920,
        "height": 1080,
        "deviceScaleFactor": 1,
        "mobile": false,
        "fitWindow": false
      },
      "chrome.laptop": {
        "target": "chrome.docker",
        "width": 1366,
        "height": 768,
        "deviceScaleFactor": 1,
        "mobile": false,
        "fitWindow": false
      }
    }
  }

I am not too familiar with Docker, so this might be a stupid question, but do I need to somehow start the storybook server inside the Docker container? I’d appreciate any help here.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:9

github_iconTop GitHub Comments

1reaction
jWytrzescommented, Mar 9, 2022

Any updates? I am encountering this issue with target set to chrome.docker and also chrome.app. Loki doesn’t see the storybook server on the default port nor some other port. It works fine with static build

1reaction
petr7555commented, Apr 26, 2021

I have a similar question. When running loki test --port 6006 --configurationFilter chrome.laptop I need to start storybook on port 6006 in advance. If I run loki test --port 6006 --configurationFilter chrome.docker, do I need to start the storybook somehow?

My configurations:

configurations: {
    'chrome.laptop': {
      target: 'chrome.app',
      width: 414,
      height: 736,
    },
    'chrome.docker': {
      target: 'chrome.docker',
      width: 414,
      height: 736,
    },
    android: {
      target: 'android.emulator',
    },
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Failed fetching stories because the server is down
I'm getting Failed fetching stories because the server is down with a static storybook build. Basically, I've got this line in my ...
Read more >
How do I use the Network view in Dev Tools? - FullStory Support
Look for Failures ... In FullStory, when a bar for a request shows up red, this indicates an error where the request failed....
Read more >
Troubleshoot common problems | Fleet and Elastic Agent ...
If you are unable to see Fleet Server in Kibana, make sure it's set up. ... However, because Fleet Server is on the...
Read more >
Error messages on Wattpad – Help Center
While using Wattpad, you may encounter a range of error messages. These may be caused by bugs, connection issues, server issues, or they...
Read more >
Troubleshoot Dataflow errors | Google Cloud
This issue occurs because some required APIs are not enabled in your project. ... manifest for IMAGE_NAME not found: manifest unknown: Failed to...
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