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.

Ngrok doesn't work with Emulator

See original GitHub issue

Github issues should be used for bugs and feature requests. Use Stack Overflow for general “how-to” questions.

Version

4.14

Describe the bug

After upping the application and providing request through ngrok, ngrok falls down and give an exception

“Oops… Your ngrok tunnel seems to have an error. Please check the Ngrok Status Viewer for more details”

“Looks like the ngrok tunnel does not exist anymore…”

Using last version of ngrok and emulator, the links provided properly.

The last log from ngrok

Ngrok Logger starting
t=2021-10-04T13:58:03+0300 lvl=info msg="received stop request" obj=app stopReq="{err:<nil> restart:false}"
t=2021-10-04T13:58:03+0300 lvl=info msg="session closing" obj=tunnels.session err=nil


t=2021-10-04T13:58:03+0300 lvl=info msg="no configuration paths supplied"
t=2021-10-04T13:58:03+0300 lvl=info msg="ignoring default config path, could not stat it" path=/home/maxim/.ngrok2/ngrok.yml err="stat /home/maxim/.ngrok2/ngrok.yml: no such file or directory"


t=2021-10-04T13:58:03+0300 lvl=info msg="starting web service" obj=web addr=127.0.0.1:4040


t=2021-10-04T13:58:03+0300 lvl=info msg=start pg=/api/tunnels id=4823c88208bf2173


t=2021-10-04T13:58:03+0300 lvl=warn msg="ngrok is not yet ready to start tunnels" pg=/api/tunnels id=4823c88208bf2173 err="a successful ngrok tunnel session has not yet been established"


t=2021-10-04T13:58:03+0300 lvl=info msg=end pg=/api/tunnels id=4823c88208bf2173 status=503 dur=1.089392ms


t=2021-10-04T13:58:03+0300 lvl=info msg=start pg=/api/tunnels id=8f5a59c2760d0499


t=2021-10-04T13:58:03+0300 lvl=warn msg="ngrok is not yet ready to start tunnels" pg=/api/tunnels id=8f5a59c2760d0499 err="a successful ngrok tunnel session has not yet been established"
t=2021-10-04T13:58:03+0300 lvl=info msg=end pg=/api/tunnels id=8f5a59c2760d0499 status=503 dur=368.768µs


t=2021-10-04T13:58:03+0300 lvl=info msg=start pg=/api/tunnels id=aac441a0694d3788


t=2021-10-04T13:58:03+0300 lvl=info msg="tunnel session started" obj=tunnels.session
t=2021-10-04T13:58:03+0300 lvl=info msg="client session established" obj=csess id=18bdb6edcb1f


t=2021-10-04T13:58:03+0300 lvl=info msg="started tunnel" obj=tunnels name="e6b52930-2501-11ec-8791-b181e964dc45 (http)" addr=http://localhost:32815 url=http://bd35-178-238-114-10.ngrok.io
t=2021-10-04T13:58:03+0300 lvl=info msg="started tunnel" obj=tunnels name=e6b52930-2501-11ec-8791-b181e964dc45 addr=http://localhost:32815 url=https://bd35-178-238-114-10.ngrok.io


t=2021-10-04T13:58:03+0300 lvl=info msg=end pg=/api/tunnels id=aac441a0694d3788 status=201 dur=277.407116ms


t=2021-10-04T13:58:08+0300 lvl=info msg="join connections" obj=join id=b0ab7155ea5b l=[::1]:32815 r=178.238.114.10:59380

To Reproduce

Steps to reproduce the behavior:

  1. Turn up the bot
  2. Open Emulator
  3. Choose the bot config
  4. Emulator get error, written upper.

Expected behavior

Emulator starts conversationUpdate and then user can interract with user

Screenshots

image

Additional context

[bug]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:25 (15 by maintainers)

github_iconTop GitHub Comments

4reactions
tonyanzianocommented, Nov 11, 2021

Hello all, the new nightly build is finally out with the fix to Ngrok:

https://github.com/microsoft/botframework-emulator-nightlies/releases/tag/v4.14.0-277368

Thank you for your patience! Keep an eye out for a stable release of Emulator as well if you don’t want to switch to the nightly for now.

3reactions
tonyanzianocommented, Nov 11, 2021

The builds have been fixed, and we just merged my change in. I will kick off a nightly build and update this thread when it is out.

We will most likely release a stable patch as well (4.14.1).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ngrok not getting detected · Issue #2197 - GitHub
Hello, yeah this works. Only when the bot is opened the ngrok is actually getting active. When I reopen the emulator without the...
Read more >
ngrok status error -looks like ngrok tunnel doesnot exist anymore
Question2: The ngrok error I see on my bot emulator(screenshot below) has anything to do with my local system or network? Is there...
Read more >
Simple Guidance For You In Connecting Android Emulator To ...
It's a minor problem but it can cause headaches, connecting Android ... By ngrok, you can connect the emulator as well as real...
Read more >
How to setup Ngrok & Bot Framework Emulator to test Azure ...
Open Command Prompt and navigate to the NGROK location, for example: CD C:\Softwares\ngrok · Type command ngrok authtoken <paste-your-copied- ...
Read more >
Socket.io does not work on Andriod emulator/Expo Go but ...
First you'll have to install ngrok on your computer. Then, you'll have to make sure that the backend/server port is running and listening;...
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