Skip to content Skip to sidebar Skip to footer

(unknown): #2514: An Unknown Error Occurred When Fetching The Script. [Service Workers]

Here's what's on console: (unknown): #2514: An unknown error occurred when fetching the script. [Service Workers] I am get the above error on my dev console when the service-work

Solution 1:

I think you need to add your corresponding https certificate in your browser. for chrome go to setting -> advanced settings -> manage ssl certificates

under authorities tab click import then add your .crt file. restart browser it should work fine.


Solution 2:

In my case I was testing a .NET Core application locally and in my config builder I had UseUrls in my Program.cs setting my localhost url with http instead of https. I was trying to load my service worker script from https.


Post a Comment for "(unknown): #2514: An Unknown Error Occurred When Fetching The Script. [Service Workers]"