send message to user there is an error of unkonwn
Jeff-Zhang-Github opened this issue · 4 comments
Jeff-Zhang-Github commented
Github issues for Java/ should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Describe the bug
This error occurs when the bot sends a message to the user, but it is normal to send the same message to other users.
To Reproduce
adapter.continueConversation(
appId, reference, turnContext -> turnContext
.sendActivity(message)
.thenApply(resourceResponse -> null)
);
//The message is in html format
Expected behavior
- How do i resolve this error
- not send this error to user
Screenshots
ramfattah commented
Hey @Jeff-Zhang-Github,
Thanks for reporting this issue. I have a few clarifying questions:
- Is this issue occurring only for specific users? If so, can you provide any details about the affected users (e.g., their user roles, permissions...)?
- Have you noticed any patterns or differences between the affected user(s) and the users who are not experiencing the issue? This information can help us identify potential causes for the problem.
- In the
continueConversation
function, can you confirm that thereference
parameter is not null?- You can verify this by checking the following properties of the ConversationReference object:
ConversationReference reference = ...; // The reference object you're passing to the function if (reference != null && reference.getUser() != null) { // Continue with the conversation } else { // Handle the null reference or user }
- You can verify this by checking the following properties of the ConversationReference object:
Thanks.
Jeff-Zhang-Github commented
Hi @ramfattah ,
I checked your questions and the answers is:
- The users who receive messages are all ordinary team members, same roles, smae permissions.
- Messages are sent to different users at the same time.
- I am sure that conversation not null, and all users not different.
ramfattah commented
Hi @Jeff-Zhang-Github, thanks for your patience.
Could you please supply a simplified .zip sample file that demonstrates this issue?