question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

500: No such host is known

See original GitHub issue

Hello there, I am new to bot development and after spending couple of days I managed to get a bot up and running using the emulator. Everything was working fine locally with the emulator and I went about deploying it to azure. I configured ngrok on the emulator following the documentation to debug the cloud hosted version and since then I have not been able to get the emulator working even for local bot. I reset all the ngrok configuration but I keep getting “No such host is known” everytime it hits the line

if (member.Id != turnContext.Activity.Recipient.Id)
                {
                    await turnContext.SendActivityAsync(MessageFactory.Text(welcomeText, welcomeText), cancellationToken);
                }

I even started a new echo bot project but I keep getting the same 500 on every bot project locally. I spend few hours looking for resolution but I could not find any which resolve this issue.

emulatorerror.zip

Could someone please help as I was so close to publishing my first bot to teams and now I am completely stuck. I am running the default Echo bot created with Visual Studio and connecting the emulator.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sharadnaircommented, Jun 10, 2020

@tonyanziano I think i found the issue. Only realised it when you asked for service url. It is mispelled losthost. It must have got messed up when i was doing the ngrok configuration - which makes sense as all this stopped working after i configured ngrok. It was hard to find out though

1reaction
tonyanzianocommented, Jun 10, 2020

I think I see the problem, the ServiceUrl property in the Activity has the value http://losthost:53822. Usually the value is localhost.

If you go into your Emulator, and open the settings page, do you happen to have anything in the localhost override input?

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] No Such Host Is Known Error Problem ... - TechinPost
Talking of the causes behind No such host is known error we came across some very common causes of this issue. The first...
Read more >
No such host is known socket connection - Stack Overflow
If you're trying to grab a client hostname from the DNS server within your company's network using: Dns.GetHostEntry(ClientIP) and each time you ...
Read more >
“No such host is known” error in Visual Studio
Error messages like “Socket Exception: No such host is known” refers to issues in the code or configuration of your application.
Read more >
Help please {No Such host is known} error - C# Corner
Help please {No Such host is known} error ... Goal to obtain the remote client computer name. ... Server Error in '/' Application....
Read more >
System.Net.Sockets.SocketException (0x80004005): No such ...
System.Net.Sockets.SocketException (0x80004005): No such host is known ... Apart from the doubt about the correctness of the code to obtain the IP ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found