Looks like they changed to
application/json; charset=utf-8
I changed the code from 

if not resp_type or resp_type == 'application/json':

to 

if not resp_type or 'application/json' in resp_type :
and it is working now. This looks OK?


On Friday, March 7, 2014 6:07:08 PM UTC+5:30, Michele Comitini wrote:
>
> What Content-type is the oauth response from google?
>
>
> 2014-03-07 13:25 GMT+01:00 Jayadevan M <[email protected]<javascript:>
> >:
>
>> Debugged and now we know this is where it is going - 
>> tokendata = cgi.parse_qs(data)
>> tokendata, after this line has the value 
>> {}
>> But the return string form google  is in proper json format. So for some 
>> reason the parsing stopped working because of some minor change in google 
>> auth's return format?
>>
>>
>> On Friday, March 7, 2014 3:45:52 PM UTC+5:30, Jayadevan M wrote:
>>>
>>> We are using google login for authorization. Till a few hours ago, it 
>>> was working fine. All of a sudden (no code changes, nothing), we started 
>>> getting tickets. Error is 
>>> "<type \'exceptions.Exception\'> Cannot parse oauth server response {\n  
>>> "access_token" : "ya29.1.AADtN_Xz2PgzK2sZozKOvLlHP6QkDc.." Anyone faced 
>>> such issues? Any ideas?
>>>
>>  -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to