tompaana / intermediator-bot-sample

A sample bot, built with the Microsoft Bot Framework (v4), that routes messages between two users on different channels.
https://tompaana.github.io/content/chatbots_as_middlemen.html
MIT License
124 stars 66 forks source link

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

Open gtejeda opened 4 years ago

gtejeda commented 4 years ago

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 `

shujaatsiddiqui commented 2 years ago

Did you find any fix? I am also facing the same issue on teams.