10

I am working with service workers and I have a situation where under Applications in my Chrome DevTools I see an indication that there are errors with my service worker however everything works fine and the console does not display any errors. Furthermore, I cannot click on the error indicator. Please see the attachment.

Can someone let me know what that error indicator is? How to display it? Why is it there?

enter image description here

3
  • clicking it doesn't show a list? what about the network tab maybe it's failed requests? Commented May 15, 2018 at 13:50
  • 5
    clicking on it shows the console but there are no errors in there whatsoever.
    – Tamas
    Commented May 15, 2018 at 13:55
  • It happened to me also many times. But I've realised that closing the developer tools and reopening again the Application tab makes the error disappear. So not sure if it's really an error... Commented Dec 5, 2023 at 21:08

2 Answers 2

3

I've seen this sort of thing for failed network requests (i.e. due to the device being offline). It doesn't necessarily indicate that there is an issue with your service worker itself.

In particular, if your service worker handles failed network requests by falling back to a cached response, then seeing what you're seeing is not likely to indicate a user-visible issue.

3
  • 2
    it'd be really great to see what's going on behind the scenes. I'd expect that link like message to be clickable and to show some further information.
    – Tamas
    Commented May 17, 2018 at 5:52
  • 1
    Understood. crbug.com/new is the preferred way of making sure that request is seen by the right folks. Commented May 17, 2018 at 14:59
  • added an issue to chrome bug tracker: bugs.chromium.org/p/chromium/issues/detail?id=995702
    – Mantissa7
    Commented Aug 20, 2019 at 10:28
2

For anyone having issues with service worker invisible errors, in the developer console (chrome) there is an option "Selected context only". When this option is checked only some errors will be visible in the console. Uncheck it to see all errors from the service worker.

Not the answer you're looking for? Browse other questions tagged or ask your own question.