kmonsoor / google-api-python-client

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

django_sample returns EOFError #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I try to use 'django_sample' you provide with the package but I get EOFError 
after having 'INFO Successfully retrieved access token:' in console log.

What steps will reproduce the problem?
1. run server

2. login as `admin` on http://localhost:8000/accounts/login/?next=/

3. it redirects me to Google

4. I login into my Google account and allow application to use my personal info

5. It redirects me to: 
http://localhost:8000/oauth2callback?code=4/dfJWEmPELF01na7tjCVsY81kBisY.UjGaAlZ
KqFMWOl05ti8ZT3apuyhGcQI

6. I get 'INFO Successfully retrieved access token:' in console 
(http://pastebin.com/NzJpLCDx)
AND EOFError: (http://pastebin.com/VminxVVH)

7. Now if I try to refresh page: 
http://localhost:8000/oauth2callback?code=4/dfJWEmPELF01na7tjCVsY81kBisY.UjGaAlZ
KqFMWOl05ti8ZT3apuyhGcQI
I get FlowExchangeError: 'invalid_grant' (http://pastebin.com/zNAAvWEf) which 
is understandable.

I use MacOS Lion, python==2.7.3, Django==1.4, oauth2client==1.0c2, 
google-api-python-client==1.0c2, httplib2==0.7.4, python-gflags==2.0

Original issue reported on code.google.com by maciej.m...@gmail.com on 20 Jul 2012 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by jcgregorio@google.com on 24 Jul 2012 at 9:26