-
Notifications
You must be signed in to change notification settings - Fork 758
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
Update Emulator for Ngrok v3 Support #2399
Conversation
Remove path and region from Ngrok Options as it is not supported in the config for Ngrok 3. Pass the path to the ctr when creating the Ngrok instance. Update ngrok.ts to use the path passed in to the ctr instead of Ngrok Options.
@anishprasad01 thank you for the contribution! would this break using Emulator with ngrok v2? |
I attempted to run with |
Testing with both Ngrok v2 and v3 reveals that v2 remains supported even with the modifications made to support v3. Communication with an Azure bot is successful and no errors appear when running or exiting the application. A search of running processes after exiting the application reveals that the Ngrok process is terminated successfully. |
hi! PM for ngrok here. I'd love to see this PR merged so that we could move your users to the latest version of the ngrok agent. If I can help in any way, please let me know. |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Build is failing due to the test failures:
|
Any update on this? Unfortunately it seems ngrok v2 is not usable anymore and Emulator is not working with any version of Ngrok v3. So, at the moment, it is not possible to contact a remote bot with Emulator. |
Fixes #2389
Version 3.x of Ngrok makes changes to the config file format and the supported command line arguments. The
path
field has been removed from the arguments, while theregion
field has been moved to the config file (where it is now required rather than optional). This causes the existing version of Emulator to fail when attempting to spawn Ngrok and connect to a remote bot.This PR updates
ngrok.ts
andngrokService.ts
to remove thepath
andregion
fields so they are not passed to the Ngrok instance, thereby allowing Ngrok v3 to be used with Emulator.Specific Changes:
NgrokOptions
.ngrokService.ts
to pass the path to thengrok.ts
constructor when creating the Ngrok instance instead of passing it as an argument to the instance.ngrok.ts
to use the path passed into the constructor instead of the path fromNgrokOptions
.