Colab 无法保存对 GitHub PUBLIC 和 PRIVATE 报告的更改
Colab can't save changes to GitHub PUBLIC and PRIVATE reports
Colab 无法保存到我的任何 GitHub 存储库,无论它们是 public
还是私有的。我得到的错误:
You do not have permission to save this notebook. To keep your changes, make a copy of the notebook.
州:
我的Google和GitHub账户都是标准账户。
我已批准并授权 Colab 具有 GitHub 访问权限。
我勾选了“访问私有存储库和组织”。
我为 Colab 站点禁用了 Adblock Plus。
我将网站的所有权限设置为 Ask(default)
或 Allow(default)
,我什至将 Pop-ups and redirects
更改为 Allow
。
我使用的浏览器是Chrome (Macintosh; Intel Mac OS X 10_14_6)
,但我也在Firefox和另一台电脑上试过了-我仍然得到同样的错误。
我已尝试删除 Colab 和 GitHub 的所有 cookie 和网站数据。
我已经尝试从 Colab 撤销 GitHub 访问权限并再次请求它。
重现错误的工作流程:
File
-> Open notebook
-> GitHub tab
-> select a PUBLIC repository
-> Try to save
-> Get error: "You do not have permission to save this notebook. To keep your changes, make a copy of the notebook."
File
-> Open notebook
-> GitHub tab
-> select a PRIVATE repository
-> Try to save
-> Get error: "You do not have permission to save this notebook. To keep your changes, make a copy of the notebook."
我尝试在 Colab 中创建一个新笔记本并将其保存到 GitHub - 这有效,它将它提交到 repo,但是当我在 Colab 中打开新笔记本创建的书时,我得到了同样的错误“您没有保存此笔记本的权限。要保留您的更改,请复制笔记本。".
以下是更多详细信息和我尝试解决的问题:
Link 最小化,public,重现此问题的独立笔记本:https://github.com/atkuzmanov/googcol-test-1
我是 GitHub 中 organization
的成员,我无权修改该组织的设置。我认为这可能会导致问题,所以尽管我不想这样做,但我还是离开了组织,它也删除了我的帐户。我给了它超过 24 小时以防它需要收敛,但这并没有解决问题,我仍然得到同样的错误。
我已经申请并获得了 GitHub sponsorship
的批准,但还没有设置,所以我认为这可能会导致问题。我撤销了它,我的 GitHub 赞助帐户被关闭了。
我使用 Chrome Developer Tools
尝试获取更多信息:
- 我保存时在
Network
选项卡中提出的唯一请求是:
curl 'https://colab.research.google.com/analytics?authuser=0' \
-H 'authority: colab.research.google.com' \
-H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"' \
-H 'dnt: 1' \
-H 'content-type: application/x-www-form-urlencoded;charset=UTF-8' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36' \
-H 'x-colab-experiment: 20730102,20730120' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'accept: */*' \
-H 'origin: https://colab.research.google.com' \
-H 'x-client-data: CIm2yQEIprbJAQjEtskBCKmdygEIhIbLAQjq8ssBCJ75ywEI1vzLAQjnhMwBCLWFzAEIy4nMAQitjswBCNuOzAEIm4/MAQjSj8wBCNmQzAEYjp7LAQ==' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://colab.research.google.com/' \
-H 'accept-language: en-GB,en;q=0.9,bg-BG;q=0.8,bg;q=0.7,en-US;q=0.6' \
-H 'cookie: [XXX-SANITIZED-XXX]' \
--data-raw '{"notebook_name":"Untitled1.ipynb","notebook_id":"https://github.com/atkuzman ov/googcol-test-1/blob/main/Untitled1.ipynb","colab_version_tag":"colab- 20211215-060053-RC00_416524343","session_id":1625868743325649,"user_action": {"action":"save","source":1}}' \
--compressed
并且此请求得到:
Request URL: https://colab.research.google.com/analytics?authuser=0
Request Method: POST
Status Code: 204
我可以尝试哪些新事物?此时,即使只能保存到 public 回购也很棒!
我也在GitHub开了一个issue,得到了回复:
Unfortunately, I suspect you're just running into an issue of bad UX on our side. In order to save back to GitHub you always have to use "Save a copy in GitHub". Colab doesn't yet support auto-save or Ctrl+S saving back to GitHub because it requires making a commit back to the repo but it's a bit misleading that the intended save flow looks like it's making another copy. So, work-around is "Save a copy in GitHub" -- hopefully that works for you for now.
GitHub issue: Colab can't save changes to GitHub public and private reports #2518
我已经回复并询问这是否已经是他们考虑的功能,如果不是,我们是否可以将其作为功能请求。
我想我们希望这能尽快实施,同时我们可以使用建议的解决方法 "Save a copy in GitHub"
。
我也希望这能为任何与我陷入同样陷阱的人提供信息。
Colab 无法保存到我的任何 GitHub 存储库,无论它们是 public
还是私有的。我得到的错误:
You do not have permission to save this notebook. To keep your changes, make a copy of the notebook.
州:
我的Google和GitHub账户都是标准账户。
我已批准并授权 Colab 具有 GitHub 访问权限。
我勾选了“访问私有存储库和组织”。
我为 Colab 站点禁用了 Adblock Plus。
我将网站的所有权限设置为
Ask(default)
或Allow(default)
,我什至将Pop-ups and redirects
更改为Allow
。我使用的浏览器是
Chrome (Macintosh; Intel Mac OS X 10_14_6)
,但我也在Firefox和另一台电脑上试过了-我仍然得到同样的错误。我已尝试删除 Colab 和 GitHub 的所有 cookie 和网站数据。
我已经尝试从 Colab 撤销 GitHub 访问权限并再次请求它。
重现错误的工作流程:
File
->Open notebook
->GitHub tab
->select a PUBLIC repository
->Try to save
->Get error: "You do not have permission to save this notebook. To keep your changes, make a copy of the notebook."
File
->Open notebook
->GitHub tab
->select a PRIVATE repository
->Try to save
->Get error: "You do not have permission to save this notebook. To keep your changes, make a copy of the notebook."
我尝试在 Colab 中创建一个新笔记本并将其保存到 GitHub - 这有效,它将它提交到 repo,但是当我在 Colab 中打开新笔记本创建的书时,我得到了同样的错误“您没有保存此笔记本的权限。要保留您的更改,请复制笔记本。".
以下是更多详细信息和我尝试解决的问题:
Link 最小化,public,重现此问题的独立笔记本:https://github.com/atkuzmanov/googcol-test-1
我是 GitHub 中
organization
的成员,我无权修改该组织的设置。我认为这可能会导致问题,所以尽管我不想这样做,但我还是离开了组织,它也删除了我的帐户。我给了它超过 24 小时以防它需要收敛,但这并没有解决问题,我仍然得到同样的错误。我已经申请并获得了
GitHub sponsorship
的批准,但还没有设置,所以我认为这可能会导致问题。我撤销了它,我的 GitHub 赞助帐户被关闭了。我使用
Chrome Developer Tools
尝试获取更多信息:- 我保存时在
Network
选项卡中提出的唯一请求是:
curl 'https://colab.research.google.com/analytics?authuser=0' \ -H 'authority: colab.research.google.com' \ -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"' \ -H 'dnt: 1' \ -H 'content-type: application/x-www-form-urlencoded;charset=UTF-8' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36' \ -H 'x-colab-experiment: 20730102,20730120' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'accept: */*' \ -H 'origin: https://colab.research.google.com' \ -H 'x-client-data: CIm2yQEIprbJAQjEtskBCKmdygEIhIbLAQjq8ssBCJ75ywEI1vzLAQjnhMwBCLWFzAEIy4nMAQitjswBCNuOzAEIm4/MAQjSj8wBCNmQzAEYjp7LAQ==' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://colab.research.google.com/' \ -H 'accept-language: en-GB,en;q=0.9,bg-BG;q=0.8,bg;q=0.7,en-US;q=0.6' \ -H 'cookie: [XXX-SANITIZED-XXX]' \ --data-raw '{"notebook_name":"Untitled1.ipynb","notebook_id":"https://github.com/atkuzman ov/googcol-test-1/blob/main/Untitled1.ipynb","colab_version_tag":"colab- 20211215-060053-RC00_416524343","session_id":1625868743325649,"user_action": {"action":"save","source":1}}' \ --compressed
并且此请求得到:
Request URL: https://colab.research.google.com/analytics?authuser=0 Request Method: POST Status Code: 204
- 我保存时在
我可以尝试哪些新事物?此时,即使只能保存到 public 回购也很棒!
我也在GitHub开了一个issue,得到了回复:
Unfortunately, I suspect you're just running into an issue of bad UX on our side. In order to save back to GitHub you always have to use "Save a copy in GitHub". Colab doesn't yet support auto-save or Ctrl+S saving back to GitHub because it requires making a commit back to the repo but it's a bit misleading that the intended save flow looks like it's making another copy. So, work-around is "Save a copy in GitHub" -- hopefully that works for you for now.
GitHub issue: Colab can't save changes to GitHub public and private reports #2518
我已经回复并询问这是否已经是他们考虑的功能,如果不是,我们是否可以将其作为功能请求。
我想我们希望这能尽快实施,同时我们可以使用建议的解决方法 "Save a copy in GitHub"
。
我也希望这能为任何与我陷入同样陷阱的人提供信息。