philnash/ngrok-for-vscode

Can't update ngrok binary

Wilson159 opened this issue · 8 comments

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...

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.

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!

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)

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!

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

@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

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.

@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