Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Get Tenant Id, Failed to Process Channel Data #29

Open
rneal4 opened this issue Oct 17, 2019 · 1 comment
Open

Get Tenant Id, Failed to Process Channel Data #29

rneal4 opened this issue Oct 17, 2019 · 1 comment

Comments

@rneal4
Copy link

rneal4 commented Oct 17, 2019

Using Bot Framework Emulator and running from localhost via Visual Studio I get an error when attempting to chat with the bot.

"{ "message": "An error has occurred.", "exceptionMessage": "Failed to process channel data in Activity", "exceptionType": "System.ArgumentException", "stackTrace": " at Microsoft.Bot.Connector.Teams.ActivityExtensions.GetTenantId(IActivity activity)\r\n at Microsoft.Teams.TemplateBotCSharp.MessagesController.<Post>d__0.MoveNext() in C:\\Users\\rneal\\Documents\\QuoteRush - Dev\\Projects\\Samples\\Teams Sample Complete\\template-bot-master-csharp\\src\\controllers\\MessagesController.cs:line 53\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__31.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()" }"

I've found some information regarding Tenant Id as a form of authorization when hosting from Azure, but it's unclear if this should be testable from VS using a change to the configuration file or if it's only applicable once hosted.

@UbhiTS
Copy link

UbhiTS commented Jun 13, 2020

+1 unable to use this sample :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants