first of all, let me say that i love the site. thanks so much for making this available.
now, i've had a little web app up and running for a little while. i'd like to use my daily scheduled script execution to save backups of my DB to google drive, but i wasn't able to get the authentication working. from what i can gather, *.google.com (and googleapis.com and googlecode.com) should be whitelisted for HTTP requests, which is what the google API uses to handle authentication requests. but when i tried to run the quickstart sample from
https://developers.google.com/drive/quickstart-python
i got an error. (yes, i did hard-code my own client ID and client "secret" string.) here's the trace:
Traceback (most recent call last):
File "./quickstart.py", line 29, in <module>
credentials = flow.step2_exchange(code)
File "/usr/local/lib/python2.7/site-packages/oauth2client/util.py", line 120, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/oauth2client/client.py", line 1131, in step2_exchange
headers=headers)
File "/usr/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1597, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections,
cachekey)
File "/usr/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1345, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1281, in _conn_request
conn.connect()
File "/usr/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1010, in connect
sock.connect((self.host, self.port))
File "/usr/local/lib/python2.7/site-packages/httplib2/socks.py", line 424, in connect
self.__negotiatehttp(destpair[0], destpair[1])
File "/usr/local/lib/python2.7/site-packages/httplib2/socks.py", line 390, in __negotiatehttp
raise HTTPError((statuscode, statusline[2]))
httplib2.socks.HTTPError: (403, 'Forbidden')
any idea what i'm doing wrong? much thanks.
EDIT by admin to format stacktrace