BotFramework-Emulator: Cannot connect - socket hang up

Emulator v3.5.35

I cannot connect to the emulator using localhost:3979/api/messages. My experiences are similar to #401 except the error message in my case is “POST socket hang up”. I am also behind a company firewall using a .pac file.

I have tried using 127.0.0.1:3979 which gives the same socket hang up error. Also tried https://localhost:3979/api/messages but this gives the error shown below.

Opening localhost:3979/api/messages in a browser gives me the same error as #401

<Error>
<Message>
The requested resource does not support http method 'GET'.
</Message>
</Error>

The interesting thing is that the emulator works ok on my old development PC at work. I ensured that nodejs was the latest LTS on both PCs but no joy. socket hang up error https

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

Hi @manutero ,

I’m sorry that you are not satisfied with the state of this issue.

It is very difficult for us to ensure that the Emulator works for every possible network configuration that our users may be behind especially when including unknowns like corporate firewalls and proxies.

We have logic in the Emulator that checks the HTTPS_PROXY and NO_PROXY environment variables before sending out any requests to the bot. HTTPS_PROXY dictates the proxy server that outgoing network traffic must travel through before reaching the destination, and NO_PROXY is a list of domains for which the proxy can be bypassed. Feel free to check #1950 or this source for more context.

I would recommend setting those before using the Emulator if you are behind some sort of proxy or corporate firewall.