Skip to content

Getting TypeError (Failed to Fetch) during periodic sync #182

@Parakoos

Description

@Parakoos

I have Sentry running, and I am getting a large number of unhandled rejections throw from the call to fetch(swUrl) called by the registerPeriodicSync function inside the pwa.client-mjs file.

It is hard for me to explain how to reproduce this, but one way is to copy the code to somewhere you control and put in an illegal URL as the swUrl, for example https://nfkdslfsd.

First question is why this is happening. Second question is if it is safe to ignore these unhandled rejections. And if it is safe to ignore them... should the library catch and swallow them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions