tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 447 forks source link

failed execution/traceback after valid login. #233

Open OptimusSubPrimeMortgageLender opened 7 years ago

OptimusSubPrimeMortgageLender commented 7 years ago

Not quite sure what I'm doing wrong here. Hopefully someone can point me in the right direction.

root@raspberrypi:/home/pi/pgoapi# python pokecli.py -a ptc -u -p -l "" 2016-08-23 03:32:54,176 [ pgoapi] [ INFO] pgoapi v1.1.7 - Copyright (c) 2016 tjado https://github.com/tejado 2016-08-23 03:32:54,301 [ utilities] [ INFO] Location for '' found: , , USA 2016-08-23 03:32:54,301 [ utilities] [ INFO] Coordinates (lat/long/alt) for location: xx.3656761 -xx.6123141 0.0 2016-08-23 03:32:54,302 [ auth_ptc] [ INFO] PTC User Login for: 2016-08-23 03:32:54,315 [connectionpool] [ INFO] Starting new HTTPS connection (1): sso.pokemon.com 2016-08-23 03:32:54,964 [connectionpool] [DEBUG] "GET /sso/login?service=https%3A%2F%2Fsso.pokemon.com%2Fsso%2Foauth2.0%2FcallbackAuthorize HTTP/1.1" 200 105 2016-08-23 03:32:55,179 [connectionpool] [DEBUG] "POST /sso/login?service=https%3A%2F%2Fsso.pokemon.com%2Fsso%2Foauth2.0%2FcallbackAuthorize HTTP/1.1" 302 0 2016-08-23 03:32:55,395 [connectionpool] [DEBUG] "GET /sso/oauth2.0/callbackAuthorize?ticket=ST-53684582-bjpZsBJx1P0eoXSwCbFg-sso.pokemon.com HTTP/1.1" 500 None 2016-08-23 03:32:55,427 [ auth_ptc] [ INFO] PTC User Login successful. 2016-08-23 03:32:55,427 [ auth_ptc] [ INFO] Request PTC Access Token... 2016-08-23 03:32:55,626 [connectionpool] [DEBUG] "POST /sso/oauth2.0/accessToken HTTP/1.1" 200 106 2016-08-23 03:32:55,628 [ auth_ptc] [ INFO] PTC Access Token successfully retrieved. 2016-08-23 03:32:55,689 [ pgoapi] [ INFO] Creating a new direct request... 2016-08-23 03:32:55,689 [ pgoapi] [ INFO] Adding 'GET_MAP_OBJECTS' to RPC request including arguments 2016-08-23 03:32:55,691 [ pgoapi] [ INFO] Execution of RPC Traceback (most recent call last): File "pokecli.py", line 139, in main() File "pokecli.py", line 134, in main response_dict = api.get_map_objects(latitude =position[0], longitude = position[1], since_timestamp_ms = timestamps, cell_id = cell_ids) File "/home/pi/pgoapi/pgoapi/pgoapi.py", line 139, in function return request.call() File "/home/pi/pgoapi/pgoapi/pgoapi.py", line 241, in call response = request.request(self._api_endpoint, self._req_method_list, self.get_position()) File "/home/pi/pgoapi/pgoapi/rpc_api.py", line 127, in request request_proto = self._build_main_request(subrequests, player_position) File "/home/pi/pgoapi/pgoapi/rpc_api.py", line 215, in _build_main_request for key in self.device_info: TypeError: 'NoneType' object is not iterable