mack-a / v2ray-agent

Xray、Tuic、hysteria2、sing-box 八合一一键脚本
https://www.v2ray-agent.com
GNU Affero General Public License v3.0
13.49k stars 4.44k forks source link

部分Nat机安装sing-box内核失败 #956

Closed ryan-web-dev closed 5 months ago

ryan-web-dev commented 5 months ago

不按照模版提交,一律关闭,反馈之前请仔细阅读脚本异常处理客户端使用教程、建议使用20卸载后重新尝试

1.问题描述

部分Nat机安装sing-box内核失败

2.安装失败的log或者截图

安装过程中提示:

jq: error (at <stdin>:1): Cannot index string with string "prerelease"

原因是安装内核时,调用

curl -s "https://api.github.com/repos/SagerNet/sing-box/releases?per_page=20"

返回值异常,返回信息如下:

{"message":"API rate limit exceeded for 36.232.xx.xx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

导致无法获取核心版本,导致安装内核失败。

建议新增判断,如果未正常获取版本,可以采取下面几种方式:

3.系统版本

debian11.9/debian12.5

4.脚本版本

v3.2.11

mack-a commented 5 months ago

后续会优化,你这个问题脚本没法解决