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

Can't update ngrok binary #29

Open
Wilson159 opened this issue Jan 19, 2022 · 8 comments
Open

Can't update ngrok binary #29

Wilson159 opened this issue Jan 19, 2022 · 8 comments

Comments

@Wilson159
Copy link

I've tried so many things to get ngrok working through VSCode for a python API...

I installed the extensions and its giving me Can't update ngrok binary. The extension may not work correctly. and its not starting any ngrok tunnel...

@philnash
Copy link
Owner

Hey @Wilson159, there have been some updates in the underlying ngrok library recently that I need to pull into this plugin. I'm working on getting an update published this week. Hopefully that will aid in getting this installed for you. I'll let you know as soon as that is available.

@philnash
Copy link
Owner

I've just published version 1.9.2. Can you try installing that and letting me know how you get on?

If it doesn't update the ngrok binary, can you open the VS Code dev tools and let me know the error that shows? Thanks!

@Wilson159
Copy link
Author

I've just published version 1.9.2. Can you try installing that and letting me know how you get on?

If it doesn't update the ngrok binary, can you open the VS Code dev tools and let me know the error that shows? Thanks!

Hi Phil!

Thanks for getting back to me so fast and pushing the update, unfortunately, I'm still getting this issue... Here's the error:

ERR spawn c:\Users\megal\.vscode\extensions\philnash.ngrok-for-vscode-1.9.2\dist\bin\ngrok.exe ENOENT: Error: spawn c:\Users\megal\.vscode\extensions\philnash.ngrok-for-vscode-1.9.2\dist\bin\ngrok.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21)

@philnash
Copy link
Owner

Hi @Wilson159, sorry you're still having issues here. ENOENT means it can't find the file, the ngrok executable in this case, so I think something has gone wrong in the installation. Can you uninstall the extension, restart VSCode, install the extension, open the dev tools and then run a command like ngrok start. That should trigger downloading the executable and the error from that action should help me figure out what is going wrong.

Thank you for your help with this!

@frednaughty
Copy link

frednaughty commented Jan 28, 2022

Hi @philnash, stumbled onto this GH issue while looking for a solution to the same problem. After installing ngrok for VSCode I get the same error starting a tunnel; Can't update ngrok binary. The extension may not work correctly.

Followed your instructions, dev tools output attached and summarized below.

ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip
ngrok - error downloading from URL RequestError: certificate has expired

Can confirm the URL works when copied into a web browser.

Thanks,
Dan

ngrok-for-vscode-devtools

@frednaughty
Copy link

frednaughty commented Jan 29, 2022

@philnash, did a little more digging on this one and found an outstanding issue in VS Code that is probably to blame for this: microsoft/vscode#136787

For anyone else experiencing this problem, changing VS Code setting http.systemCertificates to false to allow this extension to download the ngrok binaries, then changing it back fixed the problem.

Extension works great, thanks Phil!

Dan

@philnash
Copy link
Owner

philnash commented Feb 3, 2022

Thanks for digging into this @frednaughty. I'll see whether I can add this as a suggestion in the error message somehow. Or even just point to this issue for more information.

@sntgchns
Copy link

@philnash, did a little more digging on this one and found an outstanding issue in VS Code that is probably to blame for this: microsoft/vscode#136787

For anyone else experiencing this problem, changing VS Code setting http.systemCertificates to false to allow this extension to download the ngrok binaries, then changing it back fixed the problem.

Extension works great, thanks Phil!

Dan

it works! TNX

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

4 participants