Title: installed application throws CertificateHostnameMismatch · Issue #346 · 1ap/google-api-python-client · GitHub
Open Graph Title: installed application throws CertificateHostnameMismatch · Issue #346 · 1ap/google-api-python-client
X Title: installed application throws CertificateHostnameMismatch · Issue #346 · 1ap/google-api-python-client
Description: [Use this form for both apiclient and oauth2client issues] I have a Google Service Account which is being used by an installed application to upload files into GCS, and then send a POST request to a GAE Module. The upload of files to GCS...
Open Graph Description: [Use this form for both apiclient and oauth2client issues] I have a Google Service Account which is being used by an installed application to upload files into GCS, and then send a POST request to ...
X Description: [Use this form for both apiclient and oauth2client issues] I have a Google Service Account which is being used by an installed application to upload files into GCS, and then send a POST request to ...
Opengraph URL: https://github.com/1ap/google-api-python-client/issues/346
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"installed application throws CertificateHostnameMismatch","articleBody":"```\n[Use this form for both apiclient and oauth2client issues]\nI have a Google Service Account which is being used by an installed application \nto upload files into GCS, and then send a POST request to a GAE Module.\n\nThe upload of files to GCS works great, but when the credentials of the default \nservice account are used to send a POST to a GAE Module (in its yaml file the \nlogin for the GAE Module handler is declared to be required), the 'Server \npresented certificate does not match' the URI\n\nAfter searching this site, as well as using Google Search, I have not \ndiscovered a solution to this problem, and not much general info about this \ntype of problem. I'm using the latest version of the Goolge API Python client \n(1.9.24)\n\nHere's the stack trace:\n\nTraceback (most recent call last):\n File \"gcs_bq_file_uploader.py\", line 302, in main\n gae_endpoint = discovery.build(config._GAE_API, config._GAE_API_VERSION, discoveryServiceUrl=dis\ncovery_url, http=http_auth)\n File \"C:\\Python27\\Lib\\site-packages\\oauth2client\\util.py\", line 137, in positional_wrapper\n return wrapped(*args, **kwargs)\n File \"C:\\Python27\\lib\\site-packages\\google_api_python_client-1.4.1-py2.7.egg\\googleapiclient\\disco\nvery.py\", line 197, in build\n resp, content = http.request(requested_url)\n File \"C:\\Python27\\Lib\\site-packages\\oauth2client\\client.py\", line 562, in new_request\n redirections, connection_type)\n File \"C:\\Python27\\Lib\\site-packages\\httplib2\\__init__.py\", line 1608, in request\n (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, re\ndirections, cachekey)\n File \"C:\\Python27\\Lib\\site-packages\\httplib2\\__init__.py\", line 1350, in _request\n (response, content) = self._conn_request(conn, request_uri, method, body, headers)\n File \"C:\\Python27\\Lib\\site-packages\\httplib2\\__init__.py\", line 1272, in _conn_request\n conn.connect()\n File \"C:\\Python27\\Lib\\site-packages\\httplib2\\__init__.py\", line 1047, in connect\n 'host %s: %s' % (hostname, cert), hostname, cert)\nCertificateHostnameMismatch: Server presented certificate that does not match \nhost www.ethereal-shap\ne-89619.appspot.com: {'notAfter': 'Oct 13 00:00:00 2015 GMT', 'subjectAltName': \n(('DNS', '*.appspot.\ncom'), ('DNS', '*.thinkwithgoogle.com'), ('DNS', '*.withgoogle.com'), ('DNS', \n'appspot.com'), ('DNS'\n, 'thinkwithgoogle.com'), ('DNS', 'withgoogle.com')), 'subject': \n((('countryName', u'US'),), (('stat\neOrProvinceName', u'California'),), (('localityName', u'Mountain View'),), \n(('organizationName', u'G\noogle Inc'),), (('commonName', u'*.appspot.com'),))}\nINFO:root:None\nINFO:root:------------------------------------------------------------\n\nWhat steps will reproduce the problem?\n1. Running the code\n2.\n3.\n\nWhat is the expected output? What do you see instead?\nSee stack trace shown above. Source code is attached. And the yaml of the \ntarget GAE Module is included as well (if that is of any help).\n\nWhat version of the product are you using? On what operating system?\nProduct version 1.9.24. Windows 7 Professional 32-bit\n\nPlease provide any additional information below.\nThis is my first attempt at sending a POST request to a GAE Module from an \ninstalled application, so my guess is I've got an easily detected bug in my \ncode, or I'm entirely missing some critical bit of code.\n\n```\n\nOriginal issue reported on code.google.com by `wfs.deve...@gmail.com` on 23 Jul 2015 at 3:58\n\nAttachments:\n- [test_dispatch_task.yaml](https://storage.googleapis.com/google-code-attachments/google-api-python-client/issue-346/comment-0/test_dispatch_task.yaml)\n- [gcs_bq_file_uploader.py](https://storage.googleapis.com/google-code-attachments/google-api-python-client/issue-346/comment-0/gcs_bq_file_uploader.py)\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2016-03-28T19:47:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/346/google-api-python-client/issues/346"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6030d69a-79ae-1617-3cc5-a2dbfce42bff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCBE:471C3:276857C:34022A7:697D50D0 |
| html-safe-nonce | b7f301f7d4b0f382b602b20cd2a3dae55ba9f67fed889aeb4f2bb54a76309f67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0JFOjQ3MUMzOjI3Njg1N0M6MzQwMjJBNzo2OTdENTBEMCIsInZpc2l0b3JfaWQiOiIzMzIwMjA4Mzg5NTg1MDY0MTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c3c38a7ca54754c9f65fe44ebc9228344318e4fd7f166a0c1d292c18292c0c1a |
| hovercard-subject-tag | issue:144065923 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/1ap/google-api-python-client/346/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2d79e998abd0dbbb0158c676886b0cee41635b47005346cb5a15874e40aa692/1ap/google-api-python-client/issues/346 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2d79e998abd0dbbb0158c676886b0cee41635b47005346cb5a15874e40aa692/1ap/google-api-python-client/issues/346 |
| og:image:alt | [Use this form for both apiclient and oauth2client issues] I have a Google Service Account which is being used by an installed application to upload files into GCS, and then send a POST request to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/1ap/google-api-python-client git https://github.com/1ap/google-api-python-client.git |
| octolytics-dimension-user_id | 12863663 |
| octolytics-dimension-user_login | 1ap |
| octolytics-dimension-repository_id | 54918735 |
| octolytics-dimension-repository_nwo | 1ap/google-api-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 54918735 |
| octolytics-dimension-repository_network_root_nwo | 1ap/google-api-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width