mikumifa / biliTickerBuy

b站 会员购 抢票 漫展 脚本 bilibili 图形化 纯接口 验证码预演练习
https://github.com/mikumifa/biliTickerBuy
MIT License
974 stars 190 forks source link

[Bug]: 生成配置文件报错 #420

Closed xmbhjQAQ closed 2 months ago

xmbhjQAQ commented 2 months ago

部署方式

手动部署

版本

2.8.8-patch1

异常情况

当我在获取票信息的时候报了值传递错误,初步看控制台好像是传了一个字典到Calendar的postprocess,而传进去的应该是datetime.datetime() . 以下为报错信息:

  Traceback (most recent call last):
  File "D:\bilibili-buy\_internal\gradio\queueing.py", line 532, in process_events
    response = await route_utils.call_process_api(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\bilibili-buy\_internal\gradio\route_utils.py", line 276, in call_process_api
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\bilibili-buy\_internal\gradio\blocks.py", line 1938, in process_api
    data = await self.postprocess_data(block_fn, result["prediction"], state)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\bilibili-buy\_internal\gradio\blocks.py", line 1749, in postprocess_data
    prediction_value = postprocess_update_dict(
                       ^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\bilibili-buy\_internal\gradio\blocks.py", line 615, in postprocess_update_dict
    update_dict["value"] = block.postprocess(value)
                           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "gradio_calendar\calendar.py", line 66, in postprocess
ValueError: Unexpected value type <class 'dict'> for Calender (value: {'__type__': 'update'})

经测试,该问题在release版本和仓库版本均稳定复现

报错信息

No response

mikumifa commented 2 months ago

测试一下新的patch.1

mikumifa commented 2 months ago

大概5分钟后

xmbhjQAQ commented 2 months ago

Ok

xmbhjQAQ commented 2 months ago

问题依旧()

xmbhjQAQ commented 2 months ago
Traceback (most recent call last):
  File "C:\Users\xmbhjQAQ\Downloads\Compressed\bilibili-buy_v2.8.8-patch.1\_internal\gradio\queueing.py", line 532, in process_events
    response = await route_utils.call_process_api(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xmbhjQAQ\Downloads\Compressed\bilibili-buy_v2.8.8-patch.1\_internal\gradio\route_utils.py", line 276, in call_process_api
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xmbhjQAQ\Downloads\Compressed\bilibili-buy_v2.8.8-patch.1\_internal\gradio\blocks.py", line 1938, in process_api
    data = await self.postprocess_data(block_fn, result["prediction"], state)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xmbhjQAQ\Downloads\Compressed\bilibili-buy_v2.8.8-patch.1\_internal\gradio\blocks.py", line 1749, in postprocess_data
    prediction_value = postprocess_update_dict(
                       ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xmbhjQAQ\Downloads\Compressed\bilibili-buy_v2.8.8-patch.1\_internal\gradio\blocks.py", line 615, in postprocess_update_dict
    update_dict["value"] = block.postprocess(value)
                           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xmbhjQAQ\Downloads\Compressed\bilibili-buy_v2.8.8-patch.1\_internal\gradio_calendar\calendar.py", line 66, in postprocess
    raise ValueError(f"Unexpected value type {type(value)} for Calender (value: {value})")
ValueError: Unexpected value type <class 'dict'> for Calender (value: {'__type__': 'update'})
mikumifa commented 2 months ago

给个测试用例?

mikumifa commented 2 months ago

我测试没出现问题

xmbhjQAQ commented 2 months ago

https://show.bilibili.com/platform/detail.html?id=91180

xmbhjQAQ commented 2 months ago

奇了怪了

mikumifa commented 2 months ago

等patch.2

mikumifa commented 2 months ago

新加的日历功能侵入性太强了,把以前的给改坏了

xmbhjQAQ commented 2 months ago

patch2问题已解决,感谢