Ngrok error
Rinny01 opened this issue · 2 comments
Help. I'm trying to host the server with ngrok tunnel and I keep receiving this:
ERROR: You must pass a single argument, the authtoken to save to configuration file.
t=2022-05-28T06:19:06+0000 lvl=warn msg="failed to start tunnel" pg=/api/tunnels id=da18dfbbf5b91f28 err="TCP tunnels are only available after you sign up.\nSign up at: https://dashboard.ngrok.com/signup\n\nIf you have already signed up, make sure your authtoken is installed.\nYour authtoken is available on your dashboard: https://dashboard.ngrok.com/get-started/your-authtoken\r\n\r\nERR_NGROK_302\r\n"
HTTPError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pyngrok/ngrok.py in api_request(url, method, data, params, timeout)
439 try:
--> 440 response = urlopen(request, data, timeout)
441 response_data = response.read().decode("utf-8")
8 frames
HTTPError: HTTP Error 502: Bad Gateway
During handling of the above exception, another exception occurred:
PyngrokNgrokHTTPError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pyngrok/ngrok.py in api_request(url, method, data, params, timeout)
461 raise PyngrokNgrokHTTPError("ngrok client exception, API returned {}: {}".format(status_code, response_data),
462 e.url,
--> 463 status_code, e.msg, e.hdrs, response_data)
464 except URLError as e:
465 raise PyngrokNgrokURLError("ngrok client exception, URLError: {}".format(e.reason), e.reason)
PyngrokNgrokHTTPError: ngrok client exception, API returned 502: {"error_code":103,"status_code":502,"msg":"failed to start tunnel","details":{"err":"TCP tunnels are only available after you sign up.\nSign up at: https://dashboard.ngrok.com/signup\n\nIf you have already signed up, make sure your authtoken is installed.\nYour authtoken is available on your dashboard: https://dashboard.ngrok.com/get-started/your-authtoken\r\n\r\nERR_NGROK_302\r\n"}}
I don't know what to do. Can someone help me please?
Hi!
Hmm...that shouldn't happen. Had you correctly copied the authtoken from https://dashboard.ngrok.com/auth in the prompt?
It seems to be working for me in my test test runs, maybe give it a go again?
Sorry for late response. But yeah I did put the token into there. After I attempted to run it, those error text appears.
Beside, I want to host the server using cloudflare argo but the tutorial seems confusing for me. Maybe can you make a more details tutorial with video or something?