workbox
workbox copied to clipboard
[Workbox-background-sync] Sync event fails first time when connectivity is restored
Library Affected: workbox-background-sync workbox-sw, workbox-build, etc.
Browser & Platform: Edge 92 (Win), Chrome 92 (Android) E.g. Google Chrome v51.0.1 for Android, or "all browsers".
Issue or Feature Request Description: Background sync is failing for first time when network is restored after being offine. This is specific to v6.2.4 (as per my usage). Was using v6.1.5 which was working fine up until today when I upgraded the packages. Attaching screenshots from bg sync event recording for both versions
When reporting bugs, please include relevant JavaScript Console logs and links to public URLs at which the issue could be reproduced.
v6.2.4

v6.1.5

Thanks for letting us know!
@tropicadri, can you investigate and see if this is related to the IndexedDB changes introduced in v6.2.0?
@RoLfBOT I can't reproduce this issue on my side. I'm also using Chrome 92 and I used both versions of Workbox 6.1.5 and 6.2.4. I tried on my Mac and I also tried on Android. I tried a simple demo, with one request from the same origin, is there anything else you can share about how you are reproducing the issue? Can you also share the logs from the console? Here are mine as an example:

Thank you!
This issue is happening to me. To my understanding it usually the first queue which nrnever make it to the server. I will try to do some debugging and add more information