Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jian-er opened this issue May 10, 2023 · 0 comments
Open

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

Jian-er opened this issue May 10, 2023 · 0 comments

Comments

@Jian-er
Copy link

Jian-er commented May 10, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant