Google Colaboratory ServiceWorker Error On Chrome

女生的网名这么多〃 提交于 2019-12-01 14:43:27

问题


Whenever I open a Colaboratory Document I always get the same error message:

NotSupportedError: Failed to register a ServiceWorker: The user denied permission to use Service Worker.

This is happening on chrome and my browser allows for ServiceWorkers (chrome://serviceworker-internals/), what's going on? Because the thing is all the code still runs.


回答1:


Colab's output frames use service workers to support some functionality such as displaying richer graphs (Altair and Plot.ly).

The error message indicates that third-party cookies are disabled in your browser, this will prevent the browser service workers from working. The option should be configured under chrome://settings/content/cookies.




回答2:


I tried white-listing in chrome link (chrome://settings/content/cookies) the following:

https://[*.]googleusercontent.com:443
[*.]colab.research.google.com

Here it was the best approach, better than simply liberatin the 3rd part cookies Seems to work so on.




回答3:


Usually there are two causes for this error:

1- you didn't allow cookies on colab domain, so you need to change you browser settings

2- you are using an adblocker



来源:https://stackoverflow.com/questions/48285485/google-colaboratory-serviceworker-error-on-chrome

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