Firebase API server seems to be down


#1

I am following the nest-tensorflow guide but I wasn’t able to see any responses from the /api call, so I replaced the

headers = {
    'Authorization': "Bearer {0}".format(token),
}
req = urllib2.Request(nest_api_url, None, headers)
response = urllib2.urlopen(req)
data = json.loads(response.read())

with r = requests.get(nest_api_url, headers=headers)
where nest_api_url == 'https://developer-api.nest.com'

This time around I was able to observe the following error:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='firebase-apiserver20-tah01-iad01.dapi.production.nest.com', port=9553): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0
x00000187CFECEAC8>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to resp
ond',))

I tried the same using curl too and had the same problem. Github issue

The error ultimately leads to:

curl -v -L -H "Content-Type: application/json" -H "Authorization: Bearer c.<TOKEN>" -X GET "https://developer-api.nest.com/"
* Hostname was NOT found in DNS cache
*   Trying 52.44.85.242...
* Connected to developer-api.nest.com (52.44.85.242) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
*        subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=developer-api.nest.com
*        start date: 2017-08-22 15:34:41 GMT
*        expire date: 2018-08-21 00:00:00 GMT
*        subjectAltName: developer-api.nest.com matched
*        issuer: C=US; O=Google Inc; CN=Google Internet Authority G2
*        SSL certificate verify ok.
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Host: developer-api.nest.com
> Accept: */*
> Content-Type: application/json
> Authorization: Bearer c.<TOKEN>
>
< HTTP/1.1 307 Temporary Redirect
< Content-Type: application/json; charset=UTF-8
< Access-Control-Allow-Origin: *
< Cache-Control: private, no-cache, no-store, max-age=0
< Pragma: no-cache
< Location: https://firebase-apiserver20-tah01-iad01.dapi.production.nest.com:9553/
< Connection: close
< Authorization: Bearer c.<TOKEN>
< content-length: 0
<
* Closing connection 0
* SSLv3, TLS alert, Client hello (1):
* Issue another request to this URL: 'https://firebase-apiserver20-tah01-iad01.dapi.production.nest.com:9553/'
* Hostname was NOT found in DNS cache
*   Trying 54.172.192.80...
* connect to 54.172.192.80 port 9553 failed: Connection refused
* Failed to connect to firebase-apiserver20-tah01-iad01.dapi.production.nest.com port 9553: Connection refused
* Closing connection 1
curl: (7) Failed to connect to firebase-apiserver20-tah01-iad01.dapi.production.nest.com port 9553: Connection refused