500: No such host is known
See original GitHub issueHello 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.
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:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
@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
I think I see the problem, the
ServiceUrl
property in the Activity has the value http://losthost:53822. Usually the value islocalhost
.If you go into your Emulator, and open the settings page, do you happen to have anything in the
localhost override
input?