Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect Emulator to local bot running in Docker container #356

Closed
nwhitmont opened this issue Dec 5, 2017 · 2 comments
Closed
Assignees

Comments

@nwhitmont
Copy link
Contributor

User Story
As a Bot Framework developer, I'd like to have the ability to locally test my bot in a Docker container using the Emulator.

Issue Description
When attempting to connect bot running in Docker container via Emulator, connection is established (shown by the two conversationUpdate events that fire on connection) -- but when I try to send the first message to the bot, the bot crashes with error: Error: connect ECONNREFUSED 127.0.0.1:50202. I'm guessing this is something to do with the Emulator's ngrok config that doesn't play nicely with Docker?

Expected
Developer can use Emulator to connect to bot running in local Docker container.

Actual
Bot crashes in Docker container when sending messages via Emulator

docker emulator error

@nwhitmont
Copy link
Contributor Author

Answer: To test bot in Docker container, you need to go into the App Settings and uncheck "Bypass ngrok for local addresses" - then it works as expected.

@nwhitmont nwhitmont self-assigned this Dec 5, 2017
@SeanSobey
Copy link

SeanSobey commented Dec 19, 2017

I came across this same issue, then applied the workaround. This did indeed work for a few interactions until the app consistently throws this exception:
Message: GET to 'https://276131ff.ngrok.io/v3/botstate/emulator/conversations/de2ed7mi6m48' failed: [429] Too Many Requests

It seems to be the same as this and this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants