Google Colab提供无需运维的Jupyter笔记本托管服务,运行在Google Drive上。这种服务对我的大多数同事都有效,但在我的账户上却触发了API错误,错误信息如下:
Notebook loading errorThere was an error loading this notebook. Ensure that the file is accessible and try again.https://drive.google.com/drive/?action=locate&id=...The referrer https://...-apidata.googleusercontent.com/ does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions.Error: The referrer https://...-apidata.googleusercontent.com/ does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions. at za.program_ (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab_ at Ba (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab_ at za.next_ (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab_ at Da.next (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab_ at b (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab_
如何解决Google Colab中出现的身份验证API错误?
回答:
笔记本能在隐身窗口中加载吗?这种类型的错误常见原因是与您安装的某个扩展程序发生冲突。