pyngrok: pyngrok.exception.PyngrokNgrokError: The ngrok process was unable to start.

Describe the Bug Hey Alex,

I’m looking to build a flask server /w Ngrok and using Pyngrok. I have an issue that is probably very easy but can’t seem to figure it. It’s throwing out an error for me when I’m trying to build a tunnel. I’ve configured my yml file with my api key. Simply:

from pyngrok import ngrok
public_url = ngrok.connect()

Stack trace shows:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\*Redact*\PycharmProjects\GithubListener\venv\lib\site-packages\pyngrok\ngrok.py", line 158, in connect
    api_url = get_ngrok_process(ngrok_path, config_path).api_url
  File "C:\Users\*Redact*\PycharmProjects\GithubListener\venv\lib\site-packages\pyngrok\ngrok.py", line 117, in get_ngrok_process
    return process.get_process(ngrok_path, config_path)
  File "C:\Users\*Redact*\PycharmProjects\GithubListener\venv\lib\site-packages\pyngrok\process.py", line 84, in get_process
    return _start_process(ngrok_path, config_path)
  File "C:\Users\*Redact*\PycharmProjects\GithubListener\venv\lib\site-packages\pyngrok\process.py", line 197, in _start_process
    raise PyngrokNgrokError("The ngrok process was unable to start.", errors)
pyngrok.exception.PyngrokNgrokError: The ngrok process was unable to start.

Environment

  • Windows 10
  • Python 3.7
  • Pyngrok 5.1

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Coolio. Perhaps I’ll add a “troubleshooting” guide to the README to illustrate how to enable this level of debugging.

If you don’t want to use the config file, see: https://github.com/alexdlaird/pyngrok#open-a-tunnel. You can pass the options parameter, which supports any parameter ngrok supports (ie. all the ones you’re defining in your config file).