Open GoogleCodeExporter opened 9 years ago
FYI,
I have worked past this problem by making the following change to the code:
http_auth = credentials.authorize(httplib2.Http())
is now:
http_auth =
credentials.authorize(httplib2.Http(disable_ssl_certificate_validation=True))
But, doing so has resulting in the repressing the prior certificate error
message, while triggering another error (likely caused by my code, which I am
now investigating):
Traceback (most recent call last):
File "gcs_bq_file_uploader.py", line 304, in main
gae_endpoint = discovery.build(config._GAE_API, config._GAE_API_VERSION, discoveryServiceUrl=dis
covery_url, http=http_auth)
File "C:\Python27\Lib\site-packages\oauth2client\util.py", line 137, in positional_wrapper
return wrapped(*args, **kwargs)
File "C:\Python27\lib\site-packages\google_api_python_client-1.4.1-py2.7.egg\googleapiclient\disco
very.py", line 197, in build
resp, content = http.request(requested_url)
File "C:\Python27\Lib\site-packages\oauth2client\client.py", line 562, in new_request
redirections, connection_type)
File "C:\Python27\Lib\site-packages\httplib2\__init__.py", line 1608, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, re
directions, cachekey)
File "C:\Python27\Lib\site-packages\httplib2\__init__.py", line 1403, in _request
redirections=redirections - 1)
File "C:\Python27\Lib\site-packages\oauth2client\client.py", line 552, in new_request
headers['user-agent'] = self.user_agent + ' ' + headers['user-agent']
TypeError: can only concatenate tuple (not "str") to tuple
Hopefully, I'll resolve this one shortly.
Original comment by wfs.deve...@gmail.com
on 23 Jul 2015 at 6:00
Original issue reported on code.google.com by
wfs.deve...@gmail.com
on 23 Jul 2015 at 3:58Attachments: