shanmiteko / LotteryAutoScript

Bili动态抽奖助手
https://gitlab.com/shanmiteko/LotteryAutoScript
GNU General Public License v3.0
819 stars 168 forks source link

412 错误 #413

Closed Daryl-Do closed 1 week ago

Daryl-Do commented 2 months ago

描述Bug

初次使用该项目遇到了412错误。用的新注册的bilibili账号(已答题),青龙面板里运行。ip是国内homeserver,代理开关都试过。

看了其他issue讨论似乎是风控造成的,是因为全新b站账号的缘故么?

config里增加了部分wait参数的时间,但是依然报错412。请问有没有指定参数可以有效增加时延,避免风控?

重现Bug

npm run start

预期行为

无412报错

截图

No response

运行日志

[2024-09-02T20:06:44.313+08] [Info] [帐号1 环境变量初始化] [成功加载env.js文件] [2024-09-02T20:06:44.321+08] [Info] [帐号1 配置文件初始化] [成功加载my_config.js文件] [2024-09-02T20:06:44.321+08] [Info] [帐号1 检查更新] [开始] [2024-09-02T20:06:45.114+08] [Warn] [帐号1 更新脚本] [ 当前已是最新版本 ] [2024-09-02T20:06:45.258+08] [Info] [帐号1 main] [当前为第1个账号] [2024-09-02T20:06:45.458+08] [Info] [帐号1 Cookie有效性检测] [成功登录 UID:] [2024-09-02T20:06:45.459+08] [Info] [帐号1 抽奖] [开始运行] [2024-09-02T20:06:45.521+08] [Info] [帐号1 获取分区id] [成功 此处存放因抽奖临时关注的up] [2024-09-02T20:06:45.622+08] [Info] [帐号1 获取关注列表] [成功] [2024-09-02T20:06:45.625+08] [Info] [帐号1 获取动态] [开始获取含关键词抽奖合集的专栏信息] [2024-09-02T20:06:45.800+08] [Info] [帐号1 搜索专栏] [成功 关键词: 抽奖合集] [2024-09-02T20:06:46.052+08] [Info] [帐号1 获取动态] [提取专栏(38056496)中提及的dyid(2)] [2024-09-02T20:06:46.052+08] [Info] [帐号1 获取动态] [查看专栏中所提及动态(972522351212101600) (2)] [2024-09-02T20:06:46.128+08] [Error] [帐号1 json解析] [ SyntaxError: Unexpected token '响', "[响应错误]HTTP状"... is not valid JSON [响应错误]HTTP状态码: 412 响应数据: {"code":-412,"message":"request was banned","ttl":1}

] [2024-09-02T20:06:46.129+08] [Warn] [帐号1 获取一个动态的细节] [ 获取动态数据出错: [响应错误]HTTP状态码: 412 响应数据: {"code":-412,"message":"request was banned","ttl":1}

] [2024-09-02T20:06:46.129+08] [Warn] [帐号1 获取一个动态的细节] [ 切换线路(1/2) ] [2024-09-02T20:06:46.164+08] [Error] [帐号1 json解析] [ SyntaxError: Unexpected token '响', "[响应错误]HTTP状"... is not valid JSON [响应错误]HTTP状态码: 412 响应数据: {"code":-412,"message":"request was banned","ttl":1}

] [2024-09-02T20:06:46.164+08] [Warn] [帐号1 获取一个动态的细节] [ 获取动态数据出错: [响应错误]HTTP状态码: 412 响应数据: {"code":-412,"message":"request was banned","ttl":1}

] [2024-09-02T20:06:46.165+08] [Warn] [帐号1 获取一个动态的细节] [ 切换线路(2/2) ] [2024-09-02T20:06:46.284+08] [Error] [帐号1 json解析] [ SyntaxError: Unexpected token '响', "[响应错误]HTTP状"... is not valid JSON [响应错误]HTTP状态码: 412 响应数据: {"code":-412,"message":"request was banned","ttl":1}

] [2024-09-02T20:06:46.284+08] [Warn] [帐号1 获取一个动态的细节] [ 获取动态数据出错: [响应错误]HTTP状态码: 412 响应数据: {"code":-412,"message":"request was banned","ttl":1}

操作系统

docker linux

NodeJs版本

v20.15.1

脚本版本

2.9.1

其他

No response