KoalaTea / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

httplib2.CertificateHostnameMismatch #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
[Use this form for both apiclient and oauth2client issues]

What steps will reproduce the problem?
1. import the required libraries
2.FLOW = flow_from_clientsecrets(CLIENT_SECRETS,
    scope='https://www.googleapis.com/auth/plus.me',
    message=MISSING_CLIENT_SECRETS_MESSAGE)
3.FLOW.step1_get_authorize_url()  #get the url and put it in the browser, get 
the verifier
4.FLOW.step2_exchange(verifier)  #paste the verifier and execute this line

What is the expected output? What do you see instead?
Expected: I should get the access token
What I saw:
httplib2.CertificateHostnameMismatch
Server presented certificate that does not match host www.googleapis.com
Presented certificate(Common Name) is '*.g.doubleclick.net'

What version of the product are you using? On what operating system?
Httplib2 version 0.7.2
Python 2.7
Google APIs Client for Python beta7
Fedora 14

Please provide any additional information below.

Original issue reported on code.google.com by xiaohan2...@gmail.com on 17 Dec 2011 at 3:23

GoogleCodeExporter commented 8 years ago
This is working as intended, if the certs don't match then the connection 
should not be made.

Original comment by jcgregorio@google.com on 28 Dec 2011 at 8:29

GoogleCodeExporter commented 8 years ago
Actually, which API were you using when this happened?

Original comment by jcgregorio@google.com on 28 Dec 2011 at 8:31

GoogleCodeExporter commented 8 years ago
I fixed the problem after I changed my httplib to version 0.7.1

Original comment by xiaohan2...@gmail.com on 29 Dec 2011 at 12:27

GoogleCodeExporter commented 8 years ago

Original comment by jcgregorio@google.com on 29 Dec 2011 at 3:59