Google Colaboratory ServiceWorker Error On Chrome

2020-04-02 09:07发布

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.

enter image description here

3条回答
Fickle 薄情
2楼-- · 2020-04-02 09:16

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.

查看更多
萌系小妹纸
3楼-- · 2020-04-02 09:19

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

查看更多
手持菜刀,她持情操
4楼-- · 2020-04-02 09:33

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.

查看更多
登录 后发表回答