An unknown error occurred when fetching the script (Service Worker)

前端 未结 5 892
温柔的废话
温柔的废话 2021-02-12 17:28

When going offline, I get the following error by my service worker:

(unknown) #3016 An unknown error occurred when fetching the script

my service w

5条回答
  •  心在旅途
    2021-02-12 18:21

    Before trying anything else, check whether your https certificate is invalid or not matching the url you are accessing.

    E.g. In my case I was trying to access https://localhost with a certificate that was registered for another domain.

    While hitting "proceed" would allow me to enter to the site, this exact error would be printed to the console:

    An unknown error occurred when fetching the script

提交回复
热议问题