-
Notifications
You must be signed in to change notification settings - Fork 754
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
Ngrok doesn't work with Emulator #2295
Comments
The last logs from bot emulator ngrok |
@MaximDmitrievich, just verifying that you have added the path to your ngrok executable in Emulator's settings? If so, how many total instances of ngrok do you have running simultaneously? ngrok only supports two simultaneous instances regardless of your tier as a customer. |
Yep, I added the path to ngrok. In other ways - it wasn't started and
didn't create the tunnel. On the ngrok dashboard I can see the tunnels, but
when I want to check the status of it - it returns the page with an error
"resource doesn't exist".
Total instances - two tunnels. One with http and one with https. With the
same ID.
![image](https://user-images.githubusercontent.com/14152834/136084775-88cdbf87-f10d-4cfc-af2b-bc600178fcf8.png)
вт, 5 окт. 2021 г. в 19:57, Steven Kanberg ***@***.***>:
… @MaximDmitrievich <https://github.com/MaximDmitrievich>, just verifying
that you have added the path to your ngrok executable in Emulator's
settings?
If so, how many total instances of ngrok do you have running
simultaneously? ngrok only supports two simultaneous instances regardless
of your tier as a customer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2295 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADL7JAQMZS2W3I2Q4HVLBULUFMVA5ANCNFSM5FEOIW7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
*С Уважением,*
*Еремин Максим*
моб.: +7-926-227-28-56
e-mail: ***@***.***
|
I have exactly the very same issue! |
I had the same issue.
|
I have the same issue and report the same as all the above. Any resolution coming? |
(Tested using both recent and older versions of ngrok and Emulator, as well as running as admin, with the same result.) I've been digging into this issue and, from the ngrok log saved by Emulator, I'm thinking that how the ngrok service reads the settings passed in has maybe changed...? Because the client apps don't appear to be the issue, that only leaves the ngrok service. I'm assuming Emulator uses ngrok as a service (ngrok-link) based on the error message shown below. The below is the message I'm seeing when an ngrok.yml configuration file is setup (resulting in ngrok failing to spin up,; the path is correct):
If an ngrok.yml file is not available, ngrok will spin up but shows the below (with the Ngrok Status Viewer showing the same as the Cx posted above in the original post): Similar to Cx's logging, but also received "Tunnel Error Response" at the end.
@tonyanziano, this is looking like a legitimate bug to me. But, would appreciate your thoughts on this. |
This solution works for me, set environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 and restart the emulator DetailsIt seems to me node.js doesn't trust to "Let's Encrypt" certificate. I found these errors in debugger.
ngrok certificate details
|
@achmedzhanov, thank you for your input. In testing, I only found this to work successfully (i.e. no error produced in the Ngrok Status Viewer) if I also did NOT have an ngrok.yml file specified in the Did you find this to be the case, as well? |
I ran into the same issue, and this was the case for me. |
I tried the same. but the result is same - public url doesn't exists and emulator answers, that cannot connect to tunnel. |
tried to remove ngrok.yml file - same error. "Oops.. Your ngrok tunnel seems to have an error. Please check the Ngrok Status Viewer for more details" |
Hey all, Sorry for jumping into this so late. I just reproduced this locally trying to talk to a remote bot. I will look into it this week and see if I can figure out what is causing the error. I think @stevkan is right in the sense that something in the ngrok service might have changed, because we haven't changed any of this code in a very long time. |
It appears that what @achmedzhanov stated earlier about the certificate seems to be the actual problem here. After doing some digging, I found this Stack Overflow answer basically mentioning that NodeJS has certain certificates hard-coded into its source. One of these certs is the Let's Encrypt cert, which just happened to expire on September 30th of this year. If we look at when this issue was opened, Oct. 1st, this lines up nicely with the expiration of the cert -- and further supports the idea that the expiration of the cert embedded inside of NodeJS is causing the issue and not something on ngrok's side. I'm going to explore some of the approaches mentioned in this SO thread and see if we can possibly integrate any of them.
I'll update this thread with my findings. === EDIT: For reference, there is also a huge thread over on the Electron repo about this very same issue. |
I managed to implement a fix on a local build of the Emulator that enabled me to talk to a bot with a remote URL: For now, I at least know that the method that I tried works, but I might have to take some more time to evaluate the fix and make sure that it is production ready. I plan to have a new public build of the Emulator out by the end of the week with this fix, and I will update this thread if anything comes up. |
So it looks like the better approach is to just update Electron. A fix for the expired cert was merged into Electron and backported to versions 12 and up. I'm currently testing Emulator locally on version 13.6.1 of Electron, and it seems to have fixed the issue. We will need to test all 3 platforms with a packaged version of the Emulator before a new release, but things look good for now. |
Hey all, another update: We've tested the build and confirmed the fix, and are updating our build pipelines to accommodate the new Electron version. Mac and Linux are building, but we are having some trouble with the external service that signs our Windows .exe. I've reached out to the team that runs the service and hope to have a resolution soon so we can get a new build out and unblock those who are affected by this ngrok issue. |
It turns out that there is something wrong with the underlying format of the Windows .exe that gets produced during our build process, and that is preventing it from being properly signed. I'm currently looking into it. |
Hello all, We've figured out the problem with the Windows build. It turns out that the special internal build of Electron that we use just recently started shipping pre-signed, so we were trying to re-sign a binary that was already signed which was causing the error. Our plan is to modify our build pipeline to unsign the binary before re-signing it, and then hopefully it should word like normal. There was also a Mac certificate that seems to have expired in our Mac pipeline, also blocking that one from releasing. However, we think we know what the problem is, and hope to have both pipelines fixed tomorrow. We should have a new Emulator build out either tomorrow or Thursday. Thank you for your patience! |
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). |
The new nightly is out, but there are two new issues that just sprang up due to the Electron / NodeJS upgrade:
===
Once both these PRs have been merged in I will kick off another nightly build. |
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. |
@tonyanziano thank you for investigating this issue, and for being so transparent of your steps to resolve it 😃 |
Stable version 4.14.1 is now available as well. |
Closing this as resolved. |
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
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Emulator starts conversationUpdate and then user can interract with user
Screenshots
Additional context
[bug]
The text was updated successfully, but these errors were encountered: