wechaty/python-wechaty

[Bug]: pad协议 say FileBox 错误

Jian-er opened this issue · 0 comments

Environment

- wechaty:0.10.7
- wechaty-puppet: 0.4.23
- wechaty-puppet-service: 0.8.10
- wechaty-plugin-contrib: 0.0.25
- token type: padlocal
- the version of wechaty docker container: 0.65

Description

服务报错:
Traceback (most recent call last):
  File "D:\venv\wechaty_bot\lib\site-packages\apscheduler\executors\base_py3.py", line 30, in run_coroutine_job
    retval = await job.func(*job.args, **job.kwargs)
  File "D:\SiHaiHuaChen\wechaty_bot\apps\push\push_processing.py", line 704, in task_push
    await room.say(file_box)
  File "D:\venv\wechaty_bot\lib\site-packages\wechaty\user\room.py", line 398, in say
    file=some_thing
  File "D:\venv\wechaty_bot\lib\site-packages\wechaty_puppet_service\puppet.py", line 375, in message_send_file
    filebox=file.to_json_str()
  File "D:\venv\wechaty_bot\lib\site-packages\wechaty_grpc\wechaty\__init__.py", line 313, in message_send_file
    "/wechaty.Puppet/MessageSendFile", request, puppet.MessageSendFileResponse
  File "D:\venv\wechaty_bot\lib\site-packages\betterproto\__init__.py", line 1125, in _unary_unary
    assert response is not None
AssertionError
docker 日志报错:
07:58:32 ERR PuppetServiceImpl grpcError() messageSendFile() rejection: [tid:ddf40a9b] request has been cancelled for reason: SERVER_ERROR: 4 DEADLINE_EXCEEDED: Deadline exceeded

Minimum reproducible code

file_box: Union[str, FileBox] = FileBox.from_file()
await room.ready()
await room.say(file_box)