尝试安装 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."
所以这个错误恰好属于“不应该发生”类别。幸运的是,当我重新启动机器时,chrome 抛出了这个错误,错误消失了,并且开始正常工作。
在这里阅读更多相关信息:https://groups.google.com/a/chromium.org/forum/#!topic/service-worker-discuss/gCFxq4fHPVw
关于google-chrome - Web 推送服务工作人员注册错误 - 注册失败 - 无法检索公钥?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41882541/