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

NameError: name 'token_data' is not defined #2

Closed
evenly-epic-mule opened this issue Feb 6, 2017 · 1 comment
Closed

NameError: name 'token_data' is not defined #2

evenly-epic-mule opened this issue Feb 6, 2017 · 1 comment

Comments

@evenly-epic-mule
Copy link

[2017-02-06 14:19:22,720][ ERROR][worker-6] A wild exception appeared!
Traceback (most recent call last):
File "/home/develop/lib64/python3.5/site-packages/pogo_async/pgoapi.py", line 179, in call
response = await request.request(self._api_endpoint, self._req_method_list, self._position)
File "/home/develop/lib64/python3.5/site-packages/pogo_async/rpc_api.py", line 164, in request
raise AuthTokenExpiredException
pogo_async.exceptions.AuthTokenExpiredException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/develop/productiv/monocle/worker.py", line 777, in visit
return await self.visit_point(point, bootstrap=bootstrap)
File "/home/develop/productiv/monocle/worker.py", line 884, in visit_point
responses = await self.call(request)
File "/home/develop/productiv/monocle/worker.py", line 646, in call
response = await request.call()
File "/home/develop/lib64/python3.5/site-packages/pogo_async/pgoapi.py", line 186, in call
await self._auth_provider.get_access_token(force_refresh=True)
File "/home/develop/lib64/python3.5/site-packages/pogo_async/auth_ptc.py", line 192, in get_access_token
expires = int(token_data.get('expires', [0])[0]) - 3600
NameError: name 'token_data' is not defined

@evenly-epic-mule
Copy link
Author

should be fixed with 96c613c

DennyLoko pushed a commit to DennyLoko/aiopogo that referenced this issue Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant