OCAuxiliaryTools icon indicating copy to clipboard operation
OCAuxiliaryTools copied to clipboard

github访问有限制

Open chaun85 opened this issue 2 years ago • 25 comments

image

chaun85 avatar Dec 13 '22 14:12 chaun85

I also have this error even though I am sure that's the first time I use it in the day. I am using the Linux app image, by the way. It just can't connect anything to Github at all. Eg. catalogue/opencore & kexts update/ the app's package for updating. I have never had this issue before

Williamtung1 avatar Dec 13 '22 22:12 Williamtung1

https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting

For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the person making requests.

ic005k avatar Dec 14 '22 00:12 ic005k

May I ask if there is anything I (as a user) can do? like changing the request header with my assess token? I don't mind compiling it again. I just don't know where or whether I should do it. Because I used to be able to use it without problems. But now, even I have 0 assess in the day, I still have got the error

Williamtung1 avatar Dec 15 '22 08:12 Williamtung1

@Williamtung1 If so, it has nothing to do with Github's access restrictions and could be something else. Because Github's restrictions are often lifted automatically after an hour.

What operating system are you using?

ic005k avatar Dec 15 '22 09:12 ic005k

I am using the Linux app image

Please see here: https://github.com/ic005k/OCAuxiliaryTools/issues/309

ic005k avatar Dec 15 '22 09:12 ic005k

Thank you very much! After I have installed openssl version 1.0 and 1.1, everything is fine now. By the way, appreciate your hard work

Williamtung1 avatar Dec 15 '22 09:12 Williamtung1

Mac 上同样的问题,版本号 20230022,换了很多个节点都不行

Goooler avatar Jun 12 '23 15:06 Goooler

Mac 上同样的问题,版本号 20230022,换了很多个节点都不行

配合这个使用看看?https://github.com/dotnetcore/FastGithub

ic005k avatar Jun 12 '23 22:06 ic005k

不是吧,我挂的 clash 增强模式,后面等了一个小时可以用了

Goooler avatar Jun 13 '23 01:06 Goooler

后面等了一个小时可以用了

那就是你访问github api太频繁,达到了网站限制的每小时访问次数,如果是这样的话,可将oc和kexts切换到开发版,开发版没有这个限制

ic005k avatar Jun 13 '23 02:06 ic005k

我换了好几个节点都不行,都怀疑是 OCAT 内部用的代理或者镜像访问受限了,但是又找不到设置改的地方

Goooler avatar Jun 13 '23 06:06 Goooler

但是又找不到设置改的地方

“文件”菜单“设置”

ic005k avatar Jun 13 '23 07:06 ic005k

不行,就没这个位置

image

Goooler avatar Jun 13 '23 07:06 Goooler

就没这个位置

你这不是最新版本的OCAT?或者在第一个菜单里面找下 或者在升级OC和kexts的界面也有个设置按钮

ic005k avatar Jun 13 '23 08:06 ic005k

是最新版(20230022),我两台 Mac 上面都是升级到最新版,都没有相关的设置入口

Goooler avatar Jun 13 '23 08:06 Goooler

是最新版(20230022),我两台 Mac 上面都是升级到最新版,都没有相关的设置入口

这就比较奇怪了,你打开kexts和oc升级的界面(在“编辑”菜单下面或者点击工具栏上的相应图标),然后截图看看?除了OCAT的主菜单之外,这个里面也是有个“设置”入口的。

ic005k avatar Jun 13 '23 08:06 ic005k

image

Goooler avatar Jun 13 '23 08:06 Goooler

@Goooler 截图中的“Settings”按钮就是

ic005k avatar Jun 13 '23 08:06 ic005k

加速的这个选项无法取消勾选?默认勾上的状态会影响 OC 的下载更新么?

image

Goooler avatar Jun 13 '23 09:06 Goooler

默认勾上的状态会影响 OC 的下载更新么

不影响,目前这个成了唯一选项了,之前的另一个选项(爬取网页源代码)被Github屏蔽了。 你仅仅只需要调整“下载的镜像服务器”就可以了,其他都不用设置,非常简单的。

ic005k avatar Jun 13 '23 09:06 ic005k

这就有点奇怪了,那可能还是等 #315 实现之后比较方便解除限制

Goooler avatar Jun 13 '23 09:06 Goooler

@Goooler 或者你直接使用开发版(编辑菜单下选OC开发版),Kexts升级界面勾选“dev”,开发版不存在每小时API访问限制问题。 另外,关于如何全面访问Github,这个就需要你们自己各显神通了,呵呵。

ic005k avatar Jun 13 '23 09:06 ic005k

可能还是等 #315 实现之后比较方便解除限制

目前的Github那能这么容易就让你突破它的限制,关于为什么访问其API会有限制,可查阅搜索相关Github文档,在此不在赘述。

ic005k avatar Jun 13 '23 09:06 ic005k

这个很蛋疼,每次 OC 新版发布之后都不能立马更新,因为收到了 API 的访问限制,不能下载最新版。代码逻辑哪里可能是有问题的,在收到了访问限制的那段时间内,不管我挂不挂代理,不管切换哪个代理,都没法下载,不能可用的那些 IP 都有问题吧

Goooler avatar Nov 06 '23 14:11 Goooler

建议改成单选 GITHUB api || socket5 || http代理.

21307369 avatar Nov 27 '23 09:11 21307369