ngrok
ngrok copied to clipboard
ngrok randomly doesn't work until access to localhost:4040
Code:
const url = await ngrok.connect({
proto: 'http',
addr: 4723,
region: 'ap',
binPath: this.binPath, // custom binary path, eg for prod in electron
});
Error:
{"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":4041}
Description: In this case, if I don't access into localhost:4040, ngrok doesn't allow create a tunnel.
I'm getting the same. ngrok has been the reason my intermittent failed Travis builds lately
FYI, i had this same issue, i tracked it down to a bad auth token. I launched ngrok
via the command line and it responded with invalid token, I don't think those errors bubble up.
In my case I found out today that I was creating a second connection on a different machine, while my subscription only allows for one.
Trevor Linton [email protected] escreveu em seg, 25/03/2019 às 18:44 :
FYI, i had this same issue, i tracked it down to a bad auth token. I launched ngrok via the command line and it responded with invalid token, I don't think those errors bubble up.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bubenshchykov/ngrok/issues/138#issuecomment-476328864, or mute the thread https://github.com/notifications/unsubscribe-auth/ABi1bqBWBSR2ZObHKbnVjh7xFRE4wA0fks5vaRkPgaJpZM4bRuTx .
My workaround is use fetch api to request to localhost:4040 and retry again.
@miguelduarte42 did your recent PR fix this issue? try latest ngrok from npm
@bubenshchykov
New error appears
VM1379:64 Error: connect ECONNREFUSED 127.0.0.1:4041 at TCPConnectWrap.afterConnect [as oncomplete]
Having the exact same error as @zcmgyu above Didn't have this issue last week. 🤔 I'm on ngrok v3.2.5 on macOS Mojave
I don't know the reason but I also got the same issue from one day to another (v3.2.5). Generating a new token in my ngrok dashboard was not enough. The solution was to create a new account (and a new token ofc) and use that token.
I guess my account got locked for some reason, without giving me a proper error message or info on my dashboard. Hope this helps someone else!
As well as you know,billing plan PRO can be reach the other port 80 ,its too expensive when your needed just to partice project up !
I just had this issue and went into to Ngrok and shutdown the tunnel agent which fixed it for me.
I think this feature is still in beta and you have to request access through your dashboard https://dashboard.ngrok.com/tunnel-agents/sessions