Issue 341 in google-api-python-client: SSLError: EOF occurred in violation of protocol.

38 views
Skip to first unread message

google-api-p...@googlecode.com

unread,
Apr 27, 2015, 8:55:34 AM4/27/15
to google-api-p...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 341 by har...@netskope.com: SSLError: EOF occurred in violation
of protocol.
https://code.google.com/p/google-api-python-client/issues/detail?id=341

What steps will reproduce the problem?
1. I am using google-api-python-client_v1.2 on python 2.7.3.
2. Often I see the following error while trying to build a drive service
object. ( drive_service = build('drive', 'v2', http=http)
3. This is the stack trace

drive_service = build('drive', 'v2', http=http)
File "/local/lib/python2.7/site-packages/google_api_python_client-1.2-py2.7.egg/oauth2client/util.py",
line
132, in positional_wrapper
return wrapped(*args, **kwargs)

File "/local/lib/python2.7/site-packages/google_api_python_client-1.2-py2.7.egg/apiclient/discovery.py",
line 192, in build
resp, content = http.request(requested_url)

File "/local/lib/python2.7/site-packages/google_api_python_client-1.2-py2.7.egg/oauth2client/util.py",
line 132, in positional_wrapper
return wrapped(*args, **kwargs)

File "/local/lib/python2.7/site-packages/google_api_python_client-1.2-py2.7.egg/oauth2client/client.py",
line 475, in new_request
self._refresh(request_orig)

File "/local/lib/python2.7/site-packages/google_api_python_client-1.2-py2.7.egg/oauth2client/client.py",
line 653, in _refresh
self._do_refresh_request(http_request)

File "/local/lib/python2.7/site-packages/google_api_python_client-1.2-py2.7.egg/oauth2client/client.py",
line 682, in _do_refresh_request
self.token_uri, method='POST', body=body, headers=headers)
File "/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1593,
in request
(response, content) = self._request(conn, authority, uri, request_uri,
method, body, headers, redirections, cachekey)
File "/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1335,
in _request
(response, content) = self._conn_request(conn, request_uri, method, body,
headers)
File "/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1257,
in _conn_request
self.disable_ssl_certificate_validation, self.ca_certs)
File "/local/lib/python2.7/site-packages/httplib2/__init__.py", line 80, in
_ssl_wrap_socket
cert_reqs=cert_reqs, ca_certs=ca_certs)
File "/usr/lib/python2.7/ssl.py", line 381, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python2.7/ssl.py", line 143, in __init__
self._sslobj.do_handshake()
SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol



What is the expected output? What do you see instead?
Expected Output = a drive_service object
Error = SSLError


What version of the product are you using? On what operating system?
I am using google-api-python-client_v1.2 on python 2.7.3.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google-api-p...@googlecode.com

unread,
Apr 27, 2015, 11:08:14 AM4/27/15
to google-api-p...@googlegroups.com
Updates:
Status: WontFix

Comment #1 on issue 341 by nath...@google.com: SSLError: EOF occurred in
We've moved! Would you mind filing this issue over at
https://github.com/google/google-api-python-client?

If it occurs in the current release of the library, that is (1.4.0). What
are you doing with the nearly-two-years-old 1.2?

Is there some outdated documentation that led you to this old site that I
can fix to lead its next readers to our current project site?
Reply all
Reply to author
Forward
0 new messages