Exception: "Operation returned an invalid status code 'badrequest'" is returned when Agent types @Bot GetRequests to get the pending accepted requests from Telegram channel. #56
at Microsoft.Bot.Builder.BotFrameworkAdapter.SendActivitiesAsync(ITurnContext turnContext, Activity[] activities, CancellationToken cancellationToken) at Microsoft.Bot.Builder.TurnContext.<>c__DisplayClass22_0.<g__SendActivitiesThroughAdapter|1>d.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at Microsoft.Bot.Builder.TurnContext.SendActivityAsync(IActivity activity, CancellationToken cancellationToken)
at mybots.web.Bot.Services.HandoffMiddleware.CommandHandling.CommandHandler.HandleCommandAsync(ITurnContext context) in D:\dev\mybots\src\mybots.web\Bot\Services\HandoffMiddleware\CommandHandling\CommandHandler.cs:line 268
at mybots.web.Bot.Services.HandoffMiddleware.Middleware.HandoffMiddleware.OnTurnAsync(ITurnContext context, NextDelegate next, CancellationToken ct) in D:\dev\mybots\src\mybots.web\Bot\Services\HandoffMiddleware\Middleware\HandoffMiddleware.cs:line 105
at mybots.web.Bot.Services.HandoffMiddleware.Middleware.CatchExceptionMiddleware1.OnTurnAsync(ITurnContext context, NextDelegate next, CancellationToken cancellationToken) in D:\dev\mybots\src\mybots.web\Bot\Services\HandoffMiddleware\Middleware\CatchExceptionMiddleware.cs:line 35 `
Greetings guys, I'm having a similar issue to #53, but on the Telegram channel.
I tried the fix for Teams and no luck. my stack trace looks like this:
Any help would be greatly appreciated.
`Microsoft.Bot.Connector.ConversationsExtensions.ReplyToActivityAsync(IConversations operations, String conversationId, String activityId, Activity activity, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.BotFrameworkAdapter.SendActivitiesAsync(ITurnContext turnContext, Activity[] activities, CancellationToken cancellationToken) at Microsoft.Bot.Builder.TurnContext.<>c__DisplayClass22_0.<g__SendActivitiesThroughAdapter|1>d.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at Microsoft.Bot.Builder.TurnContext.SendActivityAsync(IActivity activity, CancellationToken cancellationToken)
at mybots.web.Bot.Services.HandoffMiddleware.CommandHandling.CommandHandler.HandleCommandAsync(ITurnContext context) in D:\dev\mybots\src\mybots.web\Bot\Services\HandoffMiddleware\CommandHandling\CommandHandler.cs:line 268
at mybots.web.Bot.Services.HandoffMiddleware.Middleware.HandoffMiddleware.OnTurnAsync(ITurnContext context, NextDelegate next, CancellationToken ct) in D:\dev\mybots\src\mybots.web\Bot\Services\HandoffMiddleware\Middleware\HandoffMiddleware.cs:line 105
at mybots.web.Bot.Services.HandoffMiddleware.Middleware.CatchExceptionMiddleware1.OnTurnAsync(ITurnContext context, NextDelegate next, CancellationToken cancellationToken) in D:\dev\mybots\src\mybots.web\Bot\Services\HandoffMiddleware\Middleware\CatchExceptionMiddleware.cs:line 35 `