-
Notifications
You must be signed in to change notification settings - Fork 316
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
"ngrok is not yet ready to start tunnels" in Docker #148
Comments
@bubenshchykov I contacted ngrok about this issue today. Here is their response:
|
Alan's suggestion seems to be inline with #149 which adds this error code to the isRetriable method. |
hi @paton , module already handles that: feel free to increase retries count or sleep time and see if it helps |
@paton yes, there might be a change of error message that screwed the logic up |
The code you referenced checks for status code 502. Ngrok is returning a 503, so isRetriable is false despite the 503. |
Hi all, I notice that this was resolved and closed; however, we are experiencing the same issue, and we are running |
@bn185068 Is there any further information you can provide to help look into this? This has been marked resolved because the library now checks for 503s and continues to retry until ngrok connects. |
@philnash unfortunately, I can't share our codebase. However, I think I may have figured it out. For whatever reason, my global npm env is locked into using ngrok version |
@bn185068 There can be some confusion between the original ngrok executable and this ngrok Node package. The latest version of the ngrok executable is indeed 2.3.38. From what I can see, the executable Note, you can also find the underlying version of the ngrok executable from within this package by calling Finally, on your existing problem about ngrok not connecting, could it be to do with your Docker config at all? I don't use Docker myself, but could there be an issue with ngrok not being able to make an outbound ssh tunnel through your container? Are you able to successfully start the ngrok executable without using this package? |
@philnash forgive me, but now I'm rather confused. Running For context on the docker question, I'm using a corporate MacBook given to me by my employer. The weird part is that running So now I'm led to believe there is something strange going on with my corporate laptop with regard to using ngrok in a docker container, but I'm not entirely sure since ngrok does work on the laptop generally speaking. |
Yes, both of those versions refer to the underlying ngrok executable, the same one you could get by downloading from ngrok.com. The version of the ngrok package you are using will be listed in your package.json (and more accurately in your package-lock.json).
Yeah, if you can successfully run the container and connect to ngrok on different hardware, then it sounds like something in the corporate laptop is blocking you. Though I am afraid I am out of ideas as to what it could be. |
I understand now, thank you for your patience and for the clarification. I'll continue to investigate, and if I come across anything that may be helpful to others in the future, I'll post it here. Cheers! 🍻 |
Hi,
I'm getting this error every time I try to connect:
{ error_code: 104, status_code: 503, msg: 'ngrok is not yet ready to start tunnels', details: { err: 'a successful ngrok tunnel session has not yet been established' } }
Running ngrok on the command line works great, it just doesn't work when I call it using some node code:
This stopped working all of a sudden. Been working correctly for months.
The text was updated successfully, but these errors were encountered: