Closed donmbelembe closed 5 years ago
Thank you for the helpful description and stack trace. I will look in to this later this week if not today.
Unclear what the issue with your code is, but it's likely related to the fact that you're overriding CONFIG_PATH
and DEFAULT_NGROK_PATH
with values that don't exist (or the path is wrong) or are corrupt—no issue with pyngrok
or ngrok
.
Testing on Mac and Windows, using ngrok tcp -config=~/.ngrok2/ngrok.yml 5900
properly starts a TCP tunnel (assuming an auth token is set, otherwise it will error since an account is required for this action). This command uses the ngrok
binary installed via pyngrok
.
Similarly, using the following code also works without error:
from pyngrok import ngrok
public_url = ngrok.connect(port=5900, proto='tcp', config_path='~/.ngrok2/ngrok.yml')
ngrok_process = ngrok.get_ngrok_process()
ngrok_process.process.wait()
Actually I have my own compiled ngrok executable, I use that to connect to my own ngrok server
OS: windows 10 I have my own ngrok server, from the command I use
ngrok.exe -config=config.txt -proto=tcp 5900
but when I'm trying to reproduce the same with python i'm getting this errorthis is my code
the error