(未知):#2514:获取脚本时发生未知错误。 [服务人员] [英] (unknown): #2514: An unknown error occurred when fetching the script. [Service Workers]

查看:130
本文介绍了(未知):#2514:获取脚本时发生未知错误。 [服务人员]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是控制台上的内容:

Here's what's on console:

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

我在服务工作者服用时在我的开发控制台上收到上述错误超过或跳过等待,我在关闭网络的情况下重新加载页面。问题是我在控制台上获得了大量的提取错误,因为很明显没有任何请求通过,但SW开发控制台上只有一个错误(点击图片):

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):

它的含义是什么?

错误消息本身并没有说明这个问题,比如它提出的请求或类似的问题。

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

推荐答案

我认为您需要在浏览器中添加相应的https证书。
for chrome
转到设置 - >高级设置 - >管理ssl证书

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

在权限选项卡下单击导入然后添加.crt文件。
重启浏览器应该可以正常工作。

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

这篇关于(未知):#2514:获取脚本时发生未知错误。 [服务人员]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆