raise httplib.ResponseNotReady
krhubert opened this issue · 5 comments
krhubert commented
Hi,
I've just tried to use this tool and got error:
$ ~/G-Scout (master) python gscout.py project project
/usr/local/lib/python2.7/dist-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access creds.data: No such file or directory
warnings.warn(_MISSING_FILE_MESSAGE.format(filename))
Traceback (most recent call last):
File "gscout.py", line 60, in <module>
list_projects(sys.argv[1],sys.argv[2])
File "gscout.py", line 22, in list_projects
'v1',credentials=storage.get())
File "/usr/local/lib/python2.7/dist-packages/oauth2client/_helpers.py", line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/discovery.py", line 226, in build
credentials=credentials)
File "/usr/local/lib/python2.7/dist-packages/oauth2client/_helpers.py", line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/discovery.py", line 358, in build_from_document
credentials = _auth.default_credentials()
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/_auth.py", line 41, in default_credentials
return oauth2client.client.GoogleCredentials.get_application_default()
File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 1271, in get_application_default
return GoogleCredentials._get_implicit_credentials()
File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 1256, in _get_implicit_credentials
credentials = checker()
File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 1187, in _implicit_credentials_from_gce
if not _in_gce_environment():
File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 1042, in _in_gce_environment
if NO_GCE_CHECK != 'True' and _detect_gce_environment():
File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 999, in _detect_gce_environment
http, _GCE_METADATA_URI, headers=_GCE_HEADERS)
File "/usr/local/lib/python2.7/dist-packages/oauth2client/transport.py", line 282, in request
connection_type=connection_type)
File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1659, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1399, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1355, in _conn_request
response = conn.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1123, in getresponse
raise ResponseNotReady()
httplib.ResponseNotReady
angelomellos commented
Sorry, I added a check for the creds.data file. If you pull now you shouldn't get that error. Or add an empty creds.data file to the directory and run again.
krhubert commented
Hi,
Thanks for commit, unfortunately the error still rises
angelomellos commented
Hi krhubert,
I managed to reproduce the error and it should really be fixed now. If you pull it should work, but let me know if not. Thanks.
krhubert commented
Hi!
It's working now - great job!
qmontal commented
Hi @angelomellos!
I was just testing now the project and I am also getting this issue, both with and without the creds.data
empty file on the folder. Do you have any idea if the same issue was reinserted in the project by mistake or it is a new thing?
Cheers!