microsoftgraph / microsoft-graph-comms-samples

Microsoft Graph Communications Samples
MIT License
208 stars 231 forks source link

Media Platform failed to initialise ECS Timeout #37

Closed midmohan closed 5 years ago

midmohan commented 5 years ago

I get the following error when trying to start the hue bot locally(Using Azure Fabric Service and Ngrok)

"Media platform failed to initialize" Inner Exception :- InvalidOperationException: Failed to initialize platform configuration (ECS timeout).

Microsoft.Skype.ECS.Client Warning: 0 : 1_https://s2s.config.skype.com_https://use.config.skype.com : Request failed : request=[/config/v1/AzureService/1.0.0.0?DeploymentName=bebd7c91-9822-4990-abe3-a2d83df784cb&agents=SmartAgents]; retryCount=[1]; exception=[System.Threading.Tasks.TaskCanceledException: A task was canceled. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.Skype.Seatbelt.Core.Helpers.DefaultClassifier.d11.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.Skype.Seatbelt.Core.Blocks.HedgedResourcePool.LineWithFallback`2.d8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.Skype.Seatbelt.Core.Blocks.HedgedResourcePool.ParallelRequestsExecutor2.d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.Skype.Seatbelt.Core.Blocks.HedgedResourcePool.HedgedResourcePoolBlock2.d8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.Skype.Seatbelt.Core.Blocks.HedgedResourcePool.HedgedResourcePoolBlock2.d7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.Skype.Seatbelt.Core.Blocks.Retry.RetryBlock2.d7.MoveNext()] The thread 0x219c has exited with code 0 (0x0). Microsoft.Skype.ECS.Client Error: 0 : Microsoft.Skype.ECS.Client.ECSClientConfigLoader : Exception of type 'Microsoft.Skype.Seatbelt.Core.Blocks.TimeLimit.TimeLimitException' was thrown. The thread 0x10c has exited with code 0 (0x0).

vinaychandra commented 5 years ago

Can you please retry this? This appears to be a transient issue. Please report back if the issue is still persisting.

midmohan commented 5 years ago

Able to get pass this

1fabi0 commented 3 years ago

I had the same Problem for me it was a problem with Newtonsoft.Json. So if somebody reads this having the same Issue, check your Newtonsoft.Json(is it in every Project same version, etc)

andir78 commented 3 years ago

Any updates?! Anyone else having this issue? This is still a problem for me and I've just noticed from the output window the following: -


- Microsoft.Skype.ECS.Client Warning: 0 : Microsoft.Skype.ECS.Client.DeploymentInfoFromAzure : The configuration setting Microsoft.WindowsAzure.Deployment.BuildNumber does not exist. error
- Microsoft.Skype.ECS.Client Warning: 0 : Microsoft.Skype.ECS.Client.DeploymentInfoFromAzure : The configuration setting Microsoft.WindowsAzure.Deployment.DeploymentName does not exist. error
- Microsoft.Skype.ECS.Client Warning: 0 : Microsoft.Skype.ECS.Client.DeploymentInfoFromAzure : The configuration setting Microsoft.WindowsAzure.Deployment.EnvironmentType does not exist. error
- Microsoft.Skype.ECS.Client Warning: 0 : Microsoft.Skype.ECS.Client.DeploymentInfoFromAzure : The configuration setting Microsoft.WindowsAzure.Deployment.DataCenterRegion does not exist. error
- Microsoft.Skype.ECS.Client Warning: 0 : Microsoft.Skype.ECS.Client.DeploymentInfoFromAzure : The configuration setting Microsoft.WindowsAzure.Deployment.SubscriptionId does not exist. error
- Microsoft.Skype.ECS.Client Warning: 0 : Microsoft.Skype.ECS.Client.DeploymentInfoFromAzure : The configuration setting Microsoft.WindowsAzure.Deployment.DataCenterRegion does not exist. error

This then goes to..........

Microsoft.Skype.ECS.Client Error: 0 : Microsoft.Skype.ECS.Client.ECSClientConfigLoader : An error occurred while sending the request.

Then this..............

Microsoft.Skype.ECS.Client Warning: 0 : Microsoft.Skype.ECS.Client.ECSOfflineFileCache : Unable to read from cache <<SOURCE_DIR>>\approot. Cache does not exist.

....until the final ECS timeout error.

Does anyone have any ideas? This may have always been happening but I've just never noticed it before.