loki
loki copied to clipboard
Request failed to load on CI with unknown request ID
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.
Is this related to the issue I'm having as well?
https://github.com/oblador/loki/issues/407