example
example

教程 通过Txadmin中自动搭建Qb-core框架食谱出现403解决教程 Task Failed: Response code 403 (rate limit exceeded)

Yourdays

新用户
高级用户
认证用户
黄金
35.30 黄金
当使用txadmin自动搭建qbcore的食谱时可能遇到由于github访问速率限制而搭建失败
如图
1753801652218.png
可以在上一步食谱配置里面 #STANDLONE中 之前download_github任务的前面加入一个等待时间
后续每隔六七个任务就插入一次,时间可以10-30都可以。
代码是
- action: waste_time
seconds: 30
确保输进去之后30是紫色的才能正常运行
如图:
1753802119595.png
然后点击运行,对比第一张图片的报错,在原本task7的位置加入了一个waste_time任务,然后等这个等待30s的任务过了,后面的就可以继续下载了
如图
1753801726308.png
只要挂了梯子,后面的任务基本不会出现失败了,再出现失败很大概率都是网络原因导致的。
------------------------------------------------------------------------------------------------------------------------------------
方法2

把download_github任务转变成download_file任务
比如把:
# STANDALONE
- action: download_github
src: https://github.com/citizenfx/cfx-server-data
subpath: resources
dest: ./resources/[cfx-default]
- action: remove_path
path: ./resources/[cfx-default]/[gameplay]/chat
替换成:
# STANDALONE
- action: download_file
path: ./tmp/cfx-server-data.zip
url: https://github.com/citizenfx/cfx-server-data/archive/refs/heads/master.zip
- action: unzip
dest: ./tmp/cfx-server-data
src: ./tmp/cfx-server-data.zip
- action: move_path
src: ./tmp/cfx-server-data/cfx-server-data-master/resources
dest: ./resources/[cfx-default]
- action: remove_path
path: ./resources/[cfx-default]/[gameplay]/chat
这样也可以规避那个速率限制,快捷一点的话就把原本的任务喂给ai,让它把这个任务修改为直接下载 ZIP 文件的方式
(从 download_github 操作替换为 download_file 和 unzip 操作)

还有个完美方法就是开通快连的会员,什么文件都不用改,多试几次直接搭建好。
 
最后编辑:
后退
顶部