(unknown): #2514: An unknown error occurred when fetching the script. [Service Workers]

假装没事ソ 提交于 2019-12-22 18:43:43

问题


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-worker has taken over or skipped waiting and I reload the page with the network turned off. The thing is I get plenty of fetch errors on the console because obviously none of the requests are passing through but there is just one error on SW dev console (Click image):

What is it about?

The error message itself isn't telling much about the issue, like the request it bailed out on or similar.


回答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.



来源:https://stackoverflow.com/questions/39865126/unknown-2514-an-unknown-error-occurred-when-fetching-the-script-service-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!