Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh Token Issue #51

Open
nmylarappa opened this issue Nov 20, 2018 · 2 comments
Open

Refresh Token Issue #51

nmylarappa opened this issue Nov 20, 2018 · 2 comments
Labels

Comments

@nmylarappa
Copy link

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
Copy link
Author

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
Copy link
Collaborator

DMcP89 commented Jun 7, 2024

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

@DMcP89 DMcP89 added the bug label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants