wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.55k stars 229 forks source link

[Bug]: pad协议 say FileBox 错误 #396

Open Jian-er opened 1 year ago

Jian-er commented 1 year ago

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)