OfficeDev / microsoft-teams-apps-list-search

The List Search app lets users search for and share items in a SharePoint list, all from Microsoft Teams.
MIT License
30 stars 19 forks source link

In Step 3.1 the URL "https://[BaseResourceName]-config.azurewebsites.net" takes me to a server error step #2

Open rajivsr23 opened 4 years ago

rajivsr23 commented 4 years ago

I followed all the Steps listed in the Deployment Guide but get an Issue at Step 3.1. I replaced the Base Resource Name on the URL provided but get an error. Here is a screenshot of the error page-

ErrorPage

I ran the diagnostics in Azure but in vain. Any help on this matter would be greatly appreciated!

nishandi commented 4 years ago

Hi @rajivsr23, were you trying to access the URL on this step? Please note that the URL won't work till you finish the authentication pieces right after this step.

rajivsr23 commented 4 years ago

Hi @nishandi I performed all the steps listed in "Step 3" but still get the Error Page.

rajivsr23 commented 4 years ago

@nishandi Here is the detailed error report

Server Error in '/' Application.

Response status code does not indicate success: 400 (Bad Request). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpRequestException: Response status code does not indicate success: 400 (Bad Request).] System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() +92844 Microsoft.IdentityModel.Protocols.d__8.MoveNext() +360

[IOException: IDX20804: Unable to retrieve document from: '[PII is hidden]'.] Microsoft.IdentityModel.Protocols.d8.MoveNext() +647 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.IdentityModel.Protocols.OpenIdConnect.d3.MoveNext() +291 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) +25 Microsoft.IdentityModel.Protocols.d__24.MoveNext() +1129

[InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden]'.] Microsoft.IdentityModel.Protocols.d24.MoveNext() +1586 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.Owin.Security.OpenIdConnect.dc.MoveNext() +575 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.Owin.Security.Infrastructure.db.MoveNext() +282 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.Owin.Security.Infrastructure.d8.MoveNext() +275 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.Owin.Security.Infrastructure.d5.MoveNext() +160 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.Owin.Security.Infrastructure.d0.MoveNext() +815 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.d5.MoveNext() +182 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.Owin.Security.Infrastructure.d0.MoveNext() +638 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.d5.MoveNext() +182 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.d2.MoveNext() +180 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar) +69 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.EndFinalWork(IAsyncResult ar) +64 System.Web.<>cDisplayClass11_0.b0() +34 System.Web.StepInvoker.Invoke(Action executionStep) +101 System.Web.<>cDisplayClass4_0.b0() +22 Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step) +64 System.Web.<>c__DisplayClass284_0.b__0(Action nextStepAction) +54 System.Web.StepInvoker.Invoke(Action executionStep) +85 System.Web.AsyncEventExecutionStep.InvokeEndHandler(IAsyncResult ar) +114 System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +9900796

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0

Srivatsan0102 commented 4 years ago

One of the reasons why you may have gotten this server error is because of how you named your base resource name. It is important to follow the naming convention when creating the base resource name i.e, all small letters, no spaces, no special characters, etc and when you create it and begin the deployment, check the deployment process to ensure that there is no errors during deployment.

For example, when you have started deployment, click on the bell icon on top of the azure page and click on the link Deployment in progress to check the deployment.

Screenshot (13)

Here you can check the resources being created and can notice if there are any errors in creating any azure web sites due to an incorrect or duplicated base resource name. If there are errors, you can always go ahead and cancel the deployment and try again with a different base resource name and resource group. Continue this once you get a deployment with no errors in any of the resources created, and you should be able to access the app configuration URL.