René's URL Explorer Experiment


Title: installed application throws CertificateHostnameMismatch · Issue #346 · ryanpraski/google-api-python-client · GitHub

Open Graph Title: installed application throws CertificateHostnameMismatch · Issue #346 · ryanpraski/google-api-python-client

X Title: installed application throws CertificateHostnameMismatch · Issue #346 · ryanpraski/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/ryanpraski/google-api-python-client/issues/346

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@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":"2015-09-09T16:42:29.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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5609452b-1ac2-f64c-0b65-c6f112211a7f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB46E:62EA9:1FBA5A:27E6C8:69911732
html-safe-nonced7c8849b8a1d3c1f35992aa36ccad220fb972028fd1a346ecfc4cc533e856e85
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDZFOjYyRUE5OjFGQkE1QToyN0U2Qzg6Njk5MTE3MzIiLCJ2aXNpdG9yX2lkIjoiNDQ2MTEyNzY1MTAzNDIwODA1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdc737810fb2991736b21e2aca2b8b8da1dd93492014d819872c49cf7d8d3eb1a
hovercard-subject-tagissue:105636498
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ryanpraski/google-api-python-client/346/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bd17e269bc344d6d4c5817a5c281a073fe1f856feb120ed2034d9cbf059f9aa4/ryanpraski/google-api-python-client/issues/346
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bd17e269bc344d6d4c5817a5c281a073fe1f856feb120ed2034d9cbf059f9aa4/ryanpraski/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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGoogleCodeExporter
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/ryanpraski/google-api-python-client git https://github.com/ryanpraski/google-api-python-client.git
octolytics-dimension-user_id2982734
octolytics-dimension-user_loginryanpraski
octolytics-dimension-repository_id42191160
octolytics-dimension-repository_nworyanpraski/google-api-python-client
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id42191160
octolytics-dimension-repository_network_root_nworyanpraski/google-api-python-client
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/issues/346#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fryanpraski%2Fgoogle-api-python-client%2Fissues%2F346
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fryanpraski%2Fgoogle-api-python-client%2Fissues%2F346
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ryanpraski%2Fgoogle-api-python-client
Reloadhttps://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/issues/346
Reloadhttps://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/issues/346
Reloadhttps://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/issues/346
ryanpraski https://patch-diff.githubusercontent.com/ryanpraski
google-api-python-clienthttps://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fryanpraski%2Fgoogle-api-python-client
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fryanpraski%2Fgoogle-api-python-client
Star 1 https://patch-diff.githubusercontent.com/login?return_to=%2Fryanpraski%2Fgoogle-api-python-client
Code https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client
Issues 89 https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/issues
Pull requests 0 https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/pulls
Actions https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/actions
Projects 0 https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/projects
Security 0 https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/security
Insights https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/pulse
Code https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client
Issues https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/issues
Pull requests https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/pulls
Actions https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/actions
Projects https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/projects
Security https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/security
Insights https://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ryanpraski/google-api-python-client/issues/346
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ryanpraski/google-api-python-client/issues/346
installed application throws CertificateHostnameMismatchhttps://patch-diff.githubusercontent.com/ryanpraski/google-api-python-client/issues/346#top
Priority-Mediumhttps://github.com/ryanpraski/google-api-python-client/issues?q=state%3Aopen%20label%3A%22Priority-Medium%22
Type-Defecthttps://github.com/ryanpraski/google-api-python-client/issues?q=state%3Aopen%20label%3A%22Type-Defect%22
auto-migratedhttps://github.com/ryanpraski/google-api-python-client/issues?q=state%3Aopen%20label%3A%22auto-migrated%22
https://github.com/GoogleCodeExporter
https://github.com/GoogleCodeExporter
GoogleCodeExporterhttps://github.com/GoogleCodeExporter
on Sep 9, 2015https://github.com/ryanpraski/google-api-python-client/issues/346#issue-105636498
test_dispatch_task.yamlhttps://storage.googleapis.com/google-code-attachments/google-api-python-client/issue-346/comment-0/test_dispatch_task.yaml
gcs_bq_file_uploader.pyhttps://storage.googleapis.com/google-code-attachments/google-api-python-client/issue-346/comment-0/gcs_bq_file_uploader.py
Priority-Mediumhttps://github.com/ryanpraski/google-api-python-client/issues?q=state%3Aopen%20label%3A%22Priority-Medium%22
Type-Defecthttps://github.com/ryanpraski/google-api-python-client/issues?q=state%3Aopen%20label%3A%22Type-Defect%22
auto-migratedhttps://github.com/ryanpraski/google-api-python-client/issues?q=state%3Aopen%20label%3A%22auto-migrated%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.