microsoftgraph / microsoftgraph/microsoft-graph-comms-samples

Unhandled Exception: No such host is known

Open
#606 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
253
Forks
275
Avg merge
1d 5h
Merged PRs (30d)
1

Description

Describe the issue
We are following the exact steps, however, when we start the CRWorkerRole_IN_0 in the web service, we get the attached error or below pasted.
Thanks for any help !

Unhandled Exception: No such host is known
at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
at Sample.ComplianceRecordingBot.WorkerRole.AzureConfiguration.GetInstancePublicIpAddress(String publicFqdn) in D:\microsoft-graph-comms-samples-TeamsBot\Samples\BetaSamples\LocalMediaSamples\ComplianceRecordingBot\WorkerRole\AzureConfiguration.cs:line 380
at Sample.ComplianceRecordingBot.WorkerRole.AzureConfiguration.Initialize() in D:\microsoft-graph-comms-samples-TeamsBot\Samples\BetaSamples\LocalMediaSamples\ComplianceRecordingBot\WorkerRole\AzureConfiguration.cs:line 231
at Sample.ComplianceRecordingBot.WorkerRole.WorkerRole.OnStart() in D:\microsoft-graph-comms-samples-TeamsBot\Samples\BetaSamples\LocalMediaSamples\ComplianceRecordingBot\WorkerRole\WorkerRole.cs:line 92
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()

' [2022-12-01T13:02:15.000Z] Last exit time: [2022/12/01, 13:02:17.510]. Last exit code: 0.
error code.txt

Code Snippet
Insert the code snippet if any.

Expected behavior
A clear and concise description of what you expected to happen.

Graph SDK (please complete the following information):

  • Version [e.g. 22]

Call ID
Provide the list call ids that encountered this issue. Include the time in UTC/GMT when these call have occurred.

Logs
If required, please add logs from the SDK. (Please remove any PII from the logs before uploading)

Additional context
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Samples/BetaSamples/LocalMediaSamples/ComplianceRecordingBot/WorkerRole/AzureConfiguration.cs at lines 231 and 380, then inspect WorkerRole.cs line 92 to trace startup configuration. Check which publicFqdn value is passed to GetInstancePublicIpAddress and verify the worker's startup behavior after the hostname issue is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.