On Sep 18, 2014, at 8:35 AM, Dustin J. Mitchell wrote:
> Are you by any chance using the same HTTPConnection instance in both threads?
>
> Dustin
Ack! It looks like the snippet of sample code that I used as a constructor did
that. I did not see that. This api library and docs are... frustrating. i've
been trying to keep everything tied to the sample code to avoid problems.
Everything is working perfect now. Thanks.
( the error was below, sorry for not posting that last night ). including here
for search engines in case someone else uses this.
----
File "build/bdist.macosx-10.6-intel/egg/apiclient/http.py", line 716, in
execute
File
"/Users/jvanasco/webserver/environments/stddev-2.7.5/lib/python2.7/site-packages/httplib2/__init__.py",
line 1570, in request
(response, content) = self._request(conn, authority, uri, request_uri,
method, body, headers, redirections, cachekey)
File
"/Users/jvanasco/webserver/environments/stddev-2.7.5/lib/python2.7/site-packages/httplib2/__init__.py",
line 1317, in _request
(response, content) = self._conn_request(conn, request_uri, method, body,
headers)
File
"/Users/jvanasco/webserver/environments/stddev-2.7.5/lib/python2.7/site-packages/httplib2/__init__.py",
line 1300, in _conn_request
content = response.read()
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py",
line 548, in read
s = self.fp.read()
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py",
line 1311, in read
return s + self._file.read()
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
line 351, in read
data = self._sock.recv(rbufsize)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line
241, in recv
return self.read(buflen)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line
160, in read
return self._sslobj.read(len)
ssl.SSLError: [Errno 1] _ssl.c:1363: error:1408F10B:SSL
routines:SSL3_GET_RECORD:wrong version number
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python