I am sending the notification to around 50k users, and I noticed two different errors are getting logged in error logs for very few users.
The two errors are
Operation returned an invalid status code 'Forbidden'
Operation returned an invalid status code 'BadRequest'
I am not able to understand why this error coming for only few users.
I have tried one way, where I blocked my bot and send a notification to myself then Forbidden error got logged.
Is there any other reasons why these two error occurs while sending the message to the users.
Edit:-
For Forbidden error
at Microsoft.Bot.Connector.Conversations.SendToConversationWithHttpMessagesAsync(String conversationId, Activity activity, Dictionary 2 customHeaders, CancellationToken cancellationToken)at Microsoft.Bot.Connector.ConversationsExtensions.SendToConversationAsync(IConversations operations, String conversationId, Activity activity, CancellationToken cancellationToken)
For BadRequest:-
at Microsoft.Bot.Connector.Conversations.CreateConversationWithHttpMessagesAsync(ConversationParameters parameters, Dictionary2 customHeaders, CancellationToken cancellationToken) at Microsoft.Bot.Connector.ConversationsExtensions.CreateConversationAsync(IConversations operations, ConversationParameters parameters, CancellationToken cancellationToken)
Thanks.