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

NetCore8,调用say方法,报错:no payload #44

Open
iarthit opened this issue May 8, 2024 · 7 comments
Open

NetCore8,调用say方法,报错:no payload #44

iarthit opened this issue May 8, 2024 · 7 comments

Comments

@iarthit
Copy link

iarthit commented May 8, 2024

如图所示:
VeryCapture_20240508224008

我哪里写错了吗?还是用法不对。

但实际上消息已经发出去了,我也收到了。

Copy link

dosubot bot commented May 8, 2024

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.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@huan
Copy link
Member

huan commented May 8, 2024

@dosubot It is good to know that you can read images; You are doing a magnificent job!

Copy link

dosubot bot commented May 8, 2024

I appreciate the kind words! If there's anything more I can assist with or any further questions, feel free to let me know.

Details

About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

2 similar comments
Copy link

dosubot bot commented May 8, 2024

I appreciate the kind words! If there's anything more I can assist with or any further questions, feel free to let me know.

Details

About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

Copy link

dosubot bot commented May 8, 2024

I appreciate the kind words! If there's anything more I can assist with or any further questions, feel free to let me know.

Details

About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@huan
Copy link
Member

huan commented May 8, 2024

@dosubot Do you know that you are repeating yourself?

@huan huan transferred this issue from wechaty/wechaty May 8, 2024
@iarthit
Copy link
Author

iarthit commented May 9, 2024

@dosubot 你的意思不是我的问题?

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

2 participants