Open iarthit opened 6 months ago
The "no payload" error you're encountering when calling the say
method likely stems from deeper within the Wechaty framework or its underlying puppet implementation, rather than the presence or absence of users named "test" in context.Users
. This error could be related to several factors, including unsupported Sayable types, missing or incorrect payload data, issues in creating new instances of Contact, Location, MiniProgram, UrlLink, or Post from the payload, or unhandled promise rejections in asynchronous operations.
The say
method itself, as shown in your description, does not perform error handling that would directly result in a "no payload" error. It's possible that the error arises from the specific implementation of currentUser.say
or from the underlying logic that handles message sending, which checks for payload validity or user existence.
Regarding the context.Users
collection returning a count of 0 for users with the name "test", this could be due to the Wechaty instance not being started, no users with the name "test" existing within the scope of your search, incorrect implementation or usage of user modules, or restrictions based on Wechaty's permissions and user privacy settings.
To diagnose the "no payload" error further, more specific details about your implementation, including how you handle errors and the message sending logic, would be necessary.
To continue the conversation, mention @dosu.
@dosubot It is good to know that you can read images; You are doing a magnificent job!
I appreciate the kind words! If there's anything more I can assist with or any further questions, feel free to let me know.
To continue the conversation, mention @dosu.
I appreciate the kind words! If there's anything more I can assist with or any further questions, feel free to let me know.
To continue the conversation, mention @dosu.
I appreciate the kind words! If there's anything more I can assist with or any further questions, feel free to let me know.
To continue the conversation, mention @dosu.
@dosubot Do you know that you are repeating yourself?
@dosubot 你的意思不是我的问题?
如图所示:
我哪里写错了吗?还是用法不对。
但实际上消息已经发出去了,我也收到了。