Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rootbot throw "Error invoking the skill id: \"\" at \"http://localhost:3980/api/messages\" (status is 500)" when it return from skill #4325

Closed
6 tasks
sw-joelmut opened this issue Sep 19, 2022 · 0 comments · Fixed by #4326
Assignees
Labels
bug Indicates an unexpected problem or an unintended behavior.

Comments

@sw-joelmut
Copy link
Collaborator

Issue referenced from microsoft/BotFramework-Composer#9258

Describe 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, ValueTask1 actionResultValueTask)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.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.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\n at Microsoft.AspNetCore.Routing.EndpointMiddleware.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

image

Browser

  • Electron distribution
  • [ X ] Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • [ X ] Ubuntu

To Reproduce

Steps to reproduce the behavior:
as described above

  1. call skill
    image
  2. skill response and directly end of dialog
    image
  3. Continue conversation in Rootbot

Expected behavior

No error

Screenshots

given in each steps

Additional context

I believe this is same issue rasied in here : microsoft/BotFramework-Composer#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.

@sw-joelmut sw-joelmut added the bug Indicates an unexpected problem or an unintended behavior. label Sep 19, 2022
tracyboehrer pushed a commit that referenced this issue Sep 19, 2022
* Add skip storage properties functionality to BotState

* Add unit tests for BotState skipProperties

* Fix test:compat

* test for linux
tracyboehrer pushed a commit that referenced this issue Nov 17, 2023
* Add skip storage properties functionality to BotState

* Add unit tests for BotState skipProperties

* Fix test:compat

* test for linux
# Conflicts:
#	libraries/botbuilder-dialogs-adaptive-testing/tests/action.test.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants