noctem / aiopogo Goto Github PK
View Code? Open in Web Editor NEWThis project forked from pogodevorg/pgoapi
an asyncio Pokémon API in Python
License: MIT License
This project forked from pogodevorg/pgoapi
an asyncio Pokémon API in Python
License: MIT License
[...]/python3.5/site-packages/pogo_async/auth_google.py:72: RuntimeWarning: coroutine 'AuthGoogle.get_access_token' was never awaited
self.get_access_token()
[2017-03-01 08:44:23][ ERROR][worker-73] A wild KeyError appeared!
Traceback (most recent call last):
File "/home/develop/productiv/monocle/worker.py", line 644, in visit
await self.login()
File "/home/develop/productiv/monocle/worker.py", line 210, in login
await self.app_simulation_login(version)
File "/home/develop/productiv/monocle/worker.py", line 290, in app_simulation_login
tutorial_state = await self.get_player()
File "/home/develop/productiv/monocle/worker.py", line 222, in get_player
responses = await self.call(request, chain=False)
File "/home/develop/productiv/monocle/worker.py", line 491, in call
response = await request.call()
File "/home/develop/lib64/python3.5/site-packages/aiopogo/pgoapi.py", line 149, in call
response = await request.request(self._api_endpoint, self._req_method_list, self._position)
File "/home/develop/lib64/python3.5/site-packages/aiopogo/rpc_api.py", line 126, in request
response_dict = self._parse_main_response(response, subrequests)
File "/home/develop/lib64/python3.5/site-packages/aiopogo/rpc_api.py", line 367, in _parse_main_response
resp.ParseFromString(plat_response['response'])
KeyError: 'response'
instead it shows all hash keys which are in the list
[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
As the API now uses multiple keys you get an instant ban if you still have expired keys in the list
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.