loki icon indicating copy to clipboard operation
loki copied to clipboard

Request failed to load on CI with unknown request ID

Open storm2513 opened this issue 2 years ago • 1 comments

I randomly receive 1 request failed to load; after running loki --requireReference --reactUri file:./storybook-static

I've added console.log to Network.loadingFailed:

      Network.loadingFailed(({ requestId, type, errorText, canceled, blockedReason, corsErrorStatus }) => {
        console.log({ requestId, type, errorText, canceled, blockedReason, corsErrorStatus })
        requestFailed(requestId);
      });

and got such result:

{
  requestId: '303DDAEEFADB56BD2360ABDCB2C765DF',
  type: 'Document',
  errorText: 'net::ERR_ABORTED',
  canceled: true,
  blockedReason: undefined,
  corsErrorStatus: undefined
}

The issue is that there was no such request with such request id in Network.requestWillBeSent callback, so it fails as it checks !fetchFailIgnore.test(undefined)

P.S. I'm using latest version of loki (0.30.3) but it happened on previous versions as well.

storm2513 avatar Jul 08 '22 10:07 storm2513

Is this related to the issue I'm having as well?

https://github.com/oblador/loki/issues/407

d3vl1m3 avatar Jul 28 '22 15:07 d3vl1m3