warrenday / graphql-network-inspector

A better network inspector for viewing and debugging GraphQL requests.
MIT License
464 stars 46 forks source link

Request from / intercepted from service worker are not shown #138

Open janvanhelvoort opened 4 days ago

janvanhelvoort commented 4 days ago

Describe the bug Request from / intercepted from service worker are not shown, in my opinion, a couple of days / weeks ago, it worked, but now we don't see any request that are intercepted by MSW (https://mswjs.io) back in the inspector.

If we disable MSW, we see the requests, (so I can rule out storybook or something else), but we need mocking, so we don't go to the actual grapnel backend.

Expected behavior Show request, even when they are "local"

Screenshots image

image

warrenday commented 4 days ago

We did have a major update to the underlying network logic about two weeks ago, to capture pending requests. This makes use the the chrome.webRequest API which potentially is not picking up the MSW requests.

We don't have test cases for mocked data so it could have been missed in manual testing.

I'll run some examples to see if this is an easy fix.