shanmiteko / LotteryAutoScript

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

412请求被拦截是风控了吗 #390

Closed joker357 closed 6 months ago

joker357 commented 6 months ago

描述Bug

每次运行频繁出现,不止一个账号这样,是不是运行频率过高导致的

重现Bug

正常运行,运行次数是每天一次

预期行为

脚本还会运行,但是之后又会重现这个错误

截图

image

运行日志

SyntaxError: Unexpected token '响', "[响应错误]HTTP状"... is not valid JSON [响应错误]HTTP状态码: 412 响应数据: {"code":-412,"message":"请求被拦截","ttl":1,"data":null} ] [2024-05-06T10:00:49.395+08] [Warn] [帐号1 获取一个动态的细节] [ 获取动态数据出错: [响应错误]HTTP状态码: 412 响应数据: {"code":-412,"message":"请求被拦截","ttl":1,"data":null} ] [2024-05-06T10:00:49.395+08] [Warn] [帐号1 获取一个动态的细节] [ 切换线路(1/2) ] [2024-05-06T10:00:49.540+08] [Warn] [帐号1 获取一个动态的细节] [ 获取动态数据出错: {"code":4100001,"message":"参数错误","ttl":1,"data":null} ] [2024-05-06T10:00:49.541+08] [Warn] [帐号1 获取一个动态的细节] [ 切换线路(2/2) ] [2024-05-06T10:00:49.599+08] [Error] [帐号1 json解析] [ SyntaxError: Unexpected token '响', "[响应错误]HTTP状"... is not valid JSON [响应错误]HTTP状态码: 412 响应数据:

操作系统

青龙面板

NodeJs版本

20.12.2

脚本版本

2.9.0

其他

No response

shanmiteko commented 6 months ago

增大时延