josuebrunel / yahoo-oauth

Yahoo OAuth Library
http://yahoo-oauth.readthedocs.org/en/latest/
MIT License
66 stars 21 forks source link

Refresh Token Issue #51

Open nmylarappa opened 6 years ago

nmylarappa commented 6 years ago

I am having issues in getting the refresh token. Below is error

callback_uri oob raw_access <Response [400]> ac_tkn {u'error_description': u'Failed to decode/encode refresh token', u'error': u'INVALID_REFRESH_TOKEN'}

self.access_token = parsed_access['access_token'] KeyError: 'access_toke

nmylarappa commented 6 years ago

Below is more details log details:

raw_access <Response [400]> ac_tkn {u'error_description': u'Failed to decode/encode refresh token', u'error': u'INVALID_REFRESH_TOKEN'} Traceback (most recent call last): File "/home/nmylarappa/dwh/Scripts/mktg_yahoo_campaign_d/pythonscripts/yahoo_to_json.py", line 112, in main() File "/home/nmylarappa/dwh/Scripts/mktg_yahoo_campaign_d/pythonscripts/yahoo_to_json.py", line 25, in main oauth = OAuth2(None, None, from_file=secret_filename) File "/home/nmylarappa/dwh/Scripts/mktg_yahoo_campaign_d/pythonscripts/yahoo_oauth_2.py", line 238, in init super(OAuth2, self).init('oauth2', consumer_key, consumer_secret, **kwargs) File "/home/nmylarappa/dwh/Scripts/mktg_yahoo_campaign_d/pythonscripts/yahoo_oauth_2.py", line 89, in init data.update(self.refresh_access_token()) File "/home/nmylarappa/dwh/Scripts/mktg_yahoo_campaign_d/pythonscripts/yahoo_oauth_2.py", line 206, in refresh_access_token credentials.update(self.oauth2_access_parser(raw_access)) File "/home/nmylarappa/dwh/Scripts/mktg_yahoo_campaign_d/pythonscripts/yahoo_oauth_2.py", line 167, in oauth2_access_parser self.access_token = parsed_access['access_token'] KeyError: 'access_token'

DMcP89 commented 5 months ago

Hi @nmylarappa can you provide a bit more context? Maybe a link to your code or a large snippet?