microsoftgraph / microsoftgraph/microsoft-graph-comms-samples
Not able to start AudioVideoPlaybackBot
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 253
- Forks
- 275
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 1
Description
I registered the calling bot, provided correct permissions, created a classic cloud service, applied a cert, configured the CNAME entry (and validated that it resolved to xxx.cloudapp.net), ran the configure_cloud script with the app ID, secret, etc. and published to the cloud service. However, when trying to start the app I get the following error:
Recycling (Recovering role... Application startup task 0 is running. [2021-11-10T13:14:50Z] Last exit time: [2021/11/10, 13:14:36.172]. Last exit code: 0. Last role exception: (System.UriFormatException)|>Process ID: 4256 Process Name: WaWorkerHost Thread ID: 4 AppDomain Unhandled Exception for role AVPWorkerRole_IN_0 Exception: Invalid URI: The hostname could not be parsed. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at Sample.AudioVideoPlaybackBot.WorkerRole.AzureConfiguration.Initialize() in C:\Bot\microsoft-graph-comms-samples-master\Samples\V1.0Samples\LocalMediaSamples\AudioVideoPlaybackBot\WorkerRole\AzureConfiguration.cs:line 295 at Sample.AudioVideoPlaybackBot.WorkerRole.WorkerRole.OnStart() in C:\Bot\microsoft-graph-comms-samples-master\Samples\V1.0Samples\LocalMediaSamples\AudioVideoPlaybackBot\WorkerRole\WorkerRole.cs:line 95 at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum) at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.b__0() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() , Details: Exception: Invalid URI: The hostname could not be parsed. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at Sample.AudioVideoPlaybackBot.WorkerRole.AzureConfiguration.Initialize() in C:\Bot\microsoft-graph-comms-samples-master\Samples\V1.0Samples\LocalMediaSamples\AudioVideoPlaybackBot\WorkerRole\AzureConfiguration.cs:line 295 at Sample.AudioVideoPlaybackBot.WorkerRole.WorkerRole.OnStart() in C:\Bot\microsoft-graph-comms-samples-master\Samples\V1.0Samples\LocalMediaSamples\AudioVideoPlaybackBot\WorkerRole\WorkerRole.cs:line 95 at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum) at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.b__0() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() '.)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with WorkerRole/AzureConfiguration.cs at line 295, then inspect the startup call from WorkerRole.cs at line 95. Reproduce the AudioVideoPlaybackBot deployment and trace the configuration value that produces the invalid URI; done means the cloud role starts without the UriFormatException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100