bubenshchykov / ngrok

Expose your localhost to the web. Node wrapper for ngrok.
https://ngrok.com
2.33k stars 317 forks source link

(Just letting you know) ngrok agent v2 has stopped support for unauthenticated calls, this library v4 affected #305

Open shelooks16 opened 1 year ago

shelooks16 commented 1 year ago

Hi,

I have been using this library version 4.3.3 without any auth token and everything was perfect until today.

The way I use the library is simply:

ngrok.connect(port);

All of the sudden ngrok.connect started to throw TypeError: Cannot read properties of undefined (reading 'body'). After inspecting logs from underlying ngrok agent:

Your ngrok agent version "2" is no longer supported. Only the most recent version of the ngrok agent is supported without an account.

Upgrading to v5 solved this problem

zfael commented 1 year ago

^^ I can confirm, bumping to v5 solved the problem 👍

andershagbard commented 1 year ago

For some reason ncc cant compile version 5 🤷🏼‍♂️