Rootbot throw "Error invoking the skill id: \"\" at \"http://localhost:3980/api/messages\" (status is 500)" when it return from skill
See original GitHub issueDescribe the bug
Rootbot invoke skill with input text, and Skill QnA Intent recognized is triggered and answer on question and end dialog
But after it returns to Rootbot, in the next dialog of Rootbot crashed with following error
Error invoking the skill id: "" at "http://localhost:3980/api/messages\" (status is 500). \r\n Microsoft.Bot.Schema.ErrorResponseException: Operation returned an invalid status code ‘InternalServerError’\n at Microsoft.Bot.Connector.Conversations.ReplyToActivityWithHttpMessagesAsync(String conversationId, String activityId, Activity activity, Dictionary2 customHeaders, CancellationToken cancellationToken)\n at Microsoft.Bot.Connector.ConversationsExtensions.ReplyToActivityAsync(IConversations operations, String conversationId, String activityId, Activity activity, CancellationToken cancellationToken)\n at Microsoft.Bot.Builder.CloudAdapterBase.SendActivitiesAsync(ITurnContext turnContext, Activity[] activities, CancellationToken cancellationToken)\n at Microsoft.Bot.Builder.TurnContext.<>c__DisplayClass31_0.<<SendActivitiesAsync>g__SendActivitiesThroughAdapter|1>d.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at Microsoft.Bot.Builder.SetSpeakMiddleware.<>c__DisplayClass3_0.<<OnTurnAsync>b__0>d.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at Microsoft.Bot.Builder.TurnContext.SendActivityAsync(IActivity activity, CancellationToken cancellationToken)\n at Microsoft.Bot.Builder.TurnContext.SendActivityAsync(String textReplyToSend, String speak, String inputHint, CancellationToken cancellationToken)\n at Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.CoreBotAdapter.<.ctor>b__0_0(ITurnContext turnContext, Exception exception)\n at Microsoft.Bot.Builder.BotAdapter.RunPipelineAsync(ITurnContext turnContext, BotCallbackHandler callback, CancellationToken cancellationToken)\n at Microsoft.Bot.Builder.CloudAdapterBase.ProcessActivityAsync(AuthenticateRequestResult authenticateRequestResult, Activity activity, BotCallbackHandler callback, CancellationToken cancellationToken)\n at Microsoft.Bot.Builder.CloudAdapterBase.ProcessActivityAsync(String authHeader, Activity activity, BotCallbackHandler callback, CancellationToken cancellationToken)\n at Microsoft.Bot.Builder.Integration.AspNet.Core.CloudAdapter.ProcessAsync(HttpRequest httpRequest, HttpResponse httpResponse, IBot bot, CancellationToken cancellationToken)\n at faq_bot_skill.Controllers.BotController.PostAsync(String route) in /home/seungchul/work/B2B repo/azure-bot/bahn-info-bot-framework/faq_bot_skill/Controllers/BotController.cs:line 67\n at lambda_method(Closure , Object )\n at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask
1 actionResultValueTask)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\n at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)\n\nHEADERS\n=======\nConnection: close\nContent-Type: application/json\nAccept: application/json\nHost: localhost:3980\nUser-Agent: Microsoft-BotFramework/3.1 botframework-connector/4.16.0 ms-rest-js/1.9.1 Node/v16.8.0 OS/(x64-Linux-5.4.0-120-generic)\nContent-Length: 958\nx-ms-conversation-id: 55c2f00f-91f8-45e9-9405-19613db5d606\
Version
Browser
- Electron distribution
- [ X ] Chrome
- Safari
- Firefox
- Edge
OS
- macOS
- Windows
- [ X ] Ubuntu
To Reproduce
Steps to reproduce the behavior:
as described above
-
call skill
-
skill response and directly end of dialog
-
Continue conversation in Rootbot
Expected behavior
No error
Screenshots
given in each steps
Additional context
I believe this is same issue rasied in here : https://github.com/microsoft/BotFramework-Composer/issues/8891 and same work-around that set confirmation in skill, solve the issue as well. (but our use-case is broken).
but answer in above issue was concluded like it happen in 3 bot case and one bot is used skill and also skill consumer, but it is not in my case, it happen only with rootBot and skillBot without additional 3rd bot. So I need clarification on this issue or hope to get work around. I think this is more generic issue.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (1 by maintainers)
Top GitHub Comments
@dmvtech for your reproduce, I create a sample here, issue.zip
you can reproduce issue as following Thanks
@munozemilio Closing as it was corrected by linked PR. Will require SDK release.