onedrived-dev icon indicating copy to clipboard operation
onedrived-dev copied to clipboard

Error reading ngrok API under proxy

Open jojonki opened this issue 8 years ago • 3 comments

I faced ngrok error under proxy. What is happened in my env? This proxy works and is used other applications in same PC.

  • ngrok v2.2.8
  • ubuntu 16.04.2 LTS
$  HTTPS_PROXY=http://my-proxy:my-proxy-port onedrived start --debug
Starting onedrived ... OK
Please enter password for encrypted keyring:
[2017-07-24 13:44:17,517] DEBUG: MainThread: Starting new HTTPS connection (1): api.onedrive.com
[2017-07-24 13:44:17,953] DEBUG: MainThread: https://api.onedrive.com:443 "GET /v1.0/drives HTTP/1.1" 200 393
[2017-07-24 13:44:17,964] DEBUG: MainThread: Refreshing repository session.
[2017-07-24 13:44:17,964] DEBUG: MainThread: Starting new HTTPS connection (1): login.live.com
[2017-07-24 13:44:18,858] DEBUG: MainThread: https://login.live.com:443 "POST /oauth20_token.srf HTTP/1.1" 200 1647
[2017-07-24 13:44:18,929] INFO: MainThread: Session for account 8d57cfc68f9db37d will expire in 3599 seconds.
[2017-07-24 13:44:18,929] DEBUG: MainThread: Will refresh session in 3479 seconds.
[2017-07-24 13:44:18,932] INFO: MainThread: Sweeping onedrived temporary files from local repositories.
[2017-07-24 13:44:18,937] DEBUG: Worker-0: Started.
[2017-07-24 13:44:18,937] DEBUG: Worker-1: Started.
[2017-07-24 13:44:19,944] INFO: MainThread: Local ngrok API url: http://127.0.0.1:4040/api
[2017-07-24 13:44:19,948] DEBUG: MainThread: Starting new HTTP connection (1): my-proxy
[2017-07-24 13:44:19,954] DEBUG: MainThread: http://my-proxy:my-proxy-port "GET http://127.0.0.1:4040/api/tunnels HTTP/1.1" 301 None
[2017-07-24 13:44:19,955] DEBUG: MainThread: Resetting dropped connection: my-proxy
[2017-07-24 13:44:20,973] DEBUG: MainThread: http://my-proxy:my-proxy-port "GET http://my-ip HTTP/1.1" 503 786
[2017-07-24 13:44:20,974] ERROR: MainThread: Error reading ngrok API: Expecting value: line 1 column 1 (char 0). Retry in 1sec.
[2017-07-24 13:44:21,981] DEBUG: MainThread: Starting new HTTP connection (1): my-proxy
[2017-07-24 13:44:21,989] DEBUG: MainThread: http://my-proxy:my-proxy-port "GET http://127.0.0.1:4040/api/tunnels HTTP/1.1" 301 None
[2017-07-24 13:44:21,994] DEBUG: MainThread: Resetting dropped connection: my-proxy
[2017-07-24 13:44:22,990] DEBUG: MainThread: http://my-proxy:my-proxy-port "GET http://my-ip HTTP/1.1" 503 786
[2017-07-24 13:44:22,992] ERROR: MainThread: Error reading ngrok API: Expecting value: line 1 column 1 (char 0). Retry in 1sec.
[2017-07-24 13:44:23,997] DEBUG: MainThread: Starting new HTTP connection (1): my-proxy
[2017-07-24 13:44:24,003] DEBUG: MainThread: http://my-proxy:my-proxy-port "GET http://127.0.0.1:4040/api/tunnels HTTP/1.1" 301 None
[2017-07-24 13:44:24,006] DEBUG: MainThread: Resetting dropped connection: my-proxy
[2017-07-24 13:44:24,981] DEBUG: MainThread: http://my-proxy:my-proxy-port "GET http://my-ip HTTP/1.1" 503 786
[2017-07-24 13:44:24,982] ERROR: MainThread: Error reading ngrok API: Expecting value: line 1 column 1 (char 0). Retry in 1sec.

jojonki avatar Jul 24 '17 04:07 jojonki

Hi, @jojonki I faced the same problem, did you solve it ?

zhuhaozh avatar Nov 04 '18 07:11 zhuhaozh

same problem. Does anybody know how to solve it?

winddd avatar Nov 22 '18 09:11 winddd

You are getting a 503: "503 Service Unavailable. The server is currently unable to handle the request due to a temporary overloading or maintenance of the server."

Can you make sure the ports for the proxy are correctly configured? Have you tried to set where to find NGROK: NGROK=PATH_TO_NGROK HTTPS_PROXY=http://my-proxy:my-proxy-port onedrived start --debug?

Did you installed ngrok via apt install ngrok? I remember having issues installing this way, I had to get the ngrok via their website: https://ngrok.com/download and put in a different place and tell onedrive where to find it, using the command above.

derrix060 avatar Nov 22 '18 09:11 derrix060