ZianTT / BHYG

B站 会员购 抢票 脚本
623 stars 107 forks source link

[Bug]: 在get_prepare时获取的json格式错误 #42

Closed liehun10086 closed 10 months ago

liehun10086 commented 1 year ago

描述这个Bug

在get_prepare时获取的json格式错误

复现步骤

项目ID为75750 简易模式开启 仅检测模式关闭 临近开票5分钟前正常运行,突然无法正常获取json

预期操作

程序应循环监控余票剩余信息

截图

image

问题版本

main分支-Release

日志

2023-08-20 18:05:45.831 | ERROR    | __main__:<module>:55 - 程序出现错误,错误信息:Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):

  File "requests\models.py", line 971, in json

  File "json\__init__.py", line 346, in loads

  File "json\decoder.py", line 337, in decode

  File "json\decoder.py", line 355, in raw_decode

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

> File "main.py", line 46, in <module>

  File "api.py", line 88, in __init__

  File "api.py", line 211, in get_token

  File "api.py", line 206, in get_prepare

  File "requests\models.py", line 975, in json

requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2023-08-20 18:05:45.965 | CRITICAL | __main__:<module>:56 - 错误追踪ID(可提供给开发者):574233ac61984a93a6901b8d71ac3a6b2023-08-20 18:05:45.965 | INFO     | __main__:<module>:57 - 按回车将继续...

我是最新版本

ZianTT commented 1 year ago

稍后,我将尽快跟踪该问题

ZianTT commented 10 months ago

未知问题,使用最新版本(main分支-源码运行)重试,若仍存在请发送TraceId 可能是风控了