google-chrome - Web 推送服务工作人员注册错误 - 注册失败 - 无法检索公钥?

标签 google-chrome push-notification registration service-worker web-push

尝试安装 Service Worker (Chrome 55) 时,我在浏览器控制台中收到此错误。

Registration failed - could not retrieve the public key

但这仅发生在其中一台设备的浏览器中。在 chrome 55 的其他设备中,它运行良好。我无法在具有相同 chrome 版本的其他设备中复制此问题。所以我认为这不是工作文件或 list 文件的问题。我很高兴有人能对这个问题有所了解。

最佳答案

我从 service worker discuss group 得到了一些建议关于这个错误。 Chromium 项目成员 Peter 表示

"This is the sort of error that fits in the "this should never happen" category. The only situation in which this would happen is when the on-disk GCM Key Store database got corrupted and, for some reason, cannot be recovered."

马特向我指出了这一点:https://cs.chromium.org/chromium/src/content/public/common/push_messaging_status.cc?type=cs&q=%22could+not+retrieve+the+public+key%22&sq=package:chromium&l=49

所以这个错误恰好属于“不应该发生”类别。幸运的是,当我重新启动机器时,chrome 抛出了这个错误,错误消失了,并且开始正常工作。

在这里阅读更多相关信息:https://groups.google.com/a/chromium.org/forum/#!topic/service-worker-discuss/gCFxq4fHPVw

关于google-chrome - Web 推送服务工作人员注册错误 - 注册失败 - 无法检索公钥?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41882541/

相关文章:

javascript - 如何在不自动将文件重命名为 "download"的情况下在 Chrome 上下载文件?

swift - CoreData 和 CloudKit Sync 有效,但 NSPersistentStoreRemoteChange 通知永远不会触发

ios - ios中推送通知的服务器端问题

openid - OAuth? ,OpenID?都不行我的网站应该支持哪一个?

forms - 如何在Shopify中制作确认密码字段?

javascript - document.documentElement.scrollTop 返回值在 Chrome 中有所不同

html - CSS 和 IE8 的问题,Box 仅在 IE8 中有溢出/重复的图像!请帮忙!

javascript - 如何从 Google Chrome 打开 windows 浏览器?

android - Quickblox Android 推送通知

windows - 免注册 COM 在 Windows Server 2003 上不工作