{"action":"created","issue":{"url":"https://api.github.com/repos/tuttarealstep/PokeGOAPI-PHP/issues/1","repository_url":"https://api.github.com/repos/tuttarealstep/PokeGOAPI-PHP","labels_url":"https://api.github.com/repos/tuttarealstep/PokeGOAPI-PHP/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tuttarealstep/PokeGOAPI-PHP/issues/1/comments","events_url":"https://api.github.com/repos/tuttarealstep/PokeGOAPI-PHP/issues/1/events","html_url":"https://github.com/tuttarealstep/PokeGOAPI-PHP/issues/1","id":168154864,"number":1,"title":"Maps throwing errors","user":{"login":"curt2008","id":3649584,"avatar_url":"https://avatars.githubusercontent.com/u/3649584?v=3","gravatar_id":"","url":"https://api.github.com/users/curt2008","html_url":"https://github.com/curt2008","followers_url":"https://api.github.com/users/curt2008/followers","following_url":"https://api.github.com/users/curt2008/following{/other_user}","gists_url":"https://api.github.com/users/curt2008/gists{/gist_id}","starred_url":"https://api.github.com/users/curt2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curt2008/subscriptions","organizations_url":"https://api.github.com/users/curt2008/orgs","repos_url":"https://api.github.com/users/curt2008/repos","events_url":"https://api.github.com/users/curt2008/events{/privacy}","received_events_url":"https://api.github.com/users/curt2008/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tuttarealstep/PokeGOAPI-PHP/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":{"login":"tuttarealstep","id":2702557,"avatar_url":"https://avatars.githubusercontent.com/u/2702557?v=3","gravatar_id":"","url":"https://api.github.com/users/tuttarealstep","html_url":"https://github.com/tuttarealstep","followers_url":"https://api.github.com/users/tuttarealstep/followers","following_url":"https://api.github.com/users/tuttarealstep/following{/other_user}","gists_url":"https://api.github.com/users/tuttarealstep/gists{/gist_id}","starred_url":"https://api.github.com/users/tuttarealstep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuttarealstep/subscriptions","organizations_url":"https://api.github.com/users/tuttarealstep/orgs","repos_url":"https://api.github.com/users/tuttarealstep/repos","events_url":"https://api.github.com/users/tuttarealstep/events{/privacy}","received_events_url":"https://api.github.com/users/tuttarealstep/received_events","type":"User","site_admin":false},"assignees":[{"login":"tuttarealstep","id":2702557,"avatar_url":"https://avatars.githubusercontent.com/u/2702557?v=3","gravatar_id":"","url":"https://api.github.com/users/tuttarealstep","html_url":"https://github.com/tuttarealstep","followers_url":"https://api.github.com/users/tuttarealstep/followers","following_url":"https://api.github.com/users/tuttarealstep/following{/other_user}","gists_url":"https://api.github.com/users/tuttarealstep/gists{/gist_id}","starred_url":"https://api.github.com/users/tuttarealstep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuttarealstep/subscriptions","organizations_url":"https://api.github.com/users/tuttarealstep/orgs","repos_url":"https://api.github.com/users/tuttarealstep/repos","events_url":"https://api.github.com/users/tuttarealstep/events{/privacy}","received_events_url":"https://api.github.com/users/tuttarealstep/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-07-28T17:43:57Z","updated_at":"2016-07-31T12:47:31Z","closed_at":"2016-07-28T21:44:48Z","body":"Hey,\r\n\r\nWhen attempting to use the newly implemented Maps module, I'm getting the following errors :\r\n\r\n`Fatal error: Uncaught exception 'InvalidArgumentException' with message 'value must be a integer or float' in /home/username/public_html/PokeGOAPI-PHP-master/src/POGOProtos/protocolbuffers.inc.php:611 Stack trace: #0 /home/username/public_html/PokeGOAPI-PHP-master/src/POGOProtos/protocolbuffers.inc.php(637): Protobuf::encode_varint(Array) #1 /home/username/public_html/PokeGOAPI-PHP-master/src/POGOProtos/Networking/Requests/Messages/GetMapObjectsMessage.php(96): Protobuf::write_varint(Resource id #34, Array) #2 /home/username/public_html/PokeGOAPI-PHP-master/src/POGOProtos/protocolbuffers.inc.php(103): POGOProtos\\Networking\\Requests\\Messages\\GetMapObjectsMessage->write(Resource id #34) #3 /home/username/public_html/PokeGOAPI-PHP-master/src/PokemonGoAPI/Main/ServerRequest.php(23): ProtobufMessage->toProtobuf() #4 /home/username/public_html/PokeGOAPI-PHP-master/src/PokemonGoAPI/Api/Map/Map.php(142): PokemonGoAPI\\Main\\ServerRequest->__construct(106, Object(POGOProtos\\Networking\\Requests\\Messages\\GetMap in /home/username/public_html/PokeGOAPI-PHP-master/src/POGOProtos/protocolbuffers.inc.php on line 611`\r\n\r\nThat was right after doing these functions :\r\n\r\n    $PokemonGoAPI = new PokemonGoAPI($login);\r\n    $PokemonGoAPI->getOutput()->setPKGODEBUG(true);\r\n\t\r\n\t$map = $PokemonGoAPI->getMap();\r\n\tvar_dump($map->getMapObjects(1));\r\n\tdie();`"},"comment":{"url":"https://api.github.com/repos/tuttarealstep/PokeGOAPI-PHP/issues/comments/236428140","html_url":"https://github.com/tuttarealstep/PokeGOAPI-PHP/issues/1#issuecomment-236428140","issue_url":"https://api.github.com/repos/tuttarealstep/PokeGOAPI-PHP/issues/1","id":236428140,"user":{"login":"curt2008","id":3649584,"avatar_url":"https://avatars.githubusercontent.com/u/3649584?v=3","gravatar_id":"","url":"https://api.github.com/users/curt2008","html_url":"https://github.com/curt2008","followers_url":"https://api.github.com/users/curt2008/followers","following_url":"https://api.github.com/users/curt2008/following{/other_user}","gists_url":"https://api.github.com/users/curt2008/gists{/gist_id}","starred_url":"https://api.github.com/users/curt2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curt2008/subscriptions","organizations_url":"https://api.github.com/users/curt2008/orgs","repos_url":"https://api.github.com/users/curt2008/repos","events_url":"https://api.github.com/users/curt2008/events{/privacy}","received_events_url":"https://api.github.com/users/curt2008/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T12:47:31Z","updated_at":"2016-07-31T12:47:31Z","body":"`[\"map\":\"PokemonGoAPI\\Api\\PokemonGoAPI\":private]=>\r\n    object(PokemonGoAPI\\Api\\Map\\Map)#702 (5) {\r\n      [\"pokemonGoAPI\":\"PokemonGoAPI\\Api\\Map\\Map\":private]=>\r\n      *RECURSION*\r\n      [\"useCache\":\"PokemonGoAPI\\Api\\Map\\Map\":private]=>\r\n      bool(true)\r\n      [\"cachedMapObjects\":\"PokemonGoAPI\\Api\\Map\\Map\":private]=>\r\n      object(PokemonGoAPI\\Api\\Map\\MapObjects)#695 (9) {\r\n        [\"pokemonGoAPI\":\"PokemonGoAPI\\Api\\Map\\MapObjects\":private]=>\r\n        *RECURSION*\r\n        [\"nearbyPokemons\":\"PokemonGoAPI\\Api\\Map\\MapObjects\":private]=>\r\n        array(1) {\r\n          [0]=>\r\n          object(POGOProtos\\Map\\Pokemon\\NearbyPokemon)#534 (5) {\r\n            [\"_unknown\":\"POGOProtos\\Map\\Pokemon\\NearbyPokemon\":private]=>\r\n            NULL\r\n            [\"pokemonId\":\"POGOProtos\\Map\\Pokemon\\NearbyPokemon\":private]=>\r\n            int(129)\r\n            [\"distanceInMeters\":\"POGOProtos\\Map\\Pokemon\\NearbyPokemon\":private]=>\r\n            float(200)\r\n            [\"encounterId\":\"POGOProtos\\Map\\Pokemon\\NearbyPokemon\":private]=>\r\n            NULL\r\n            [\"_unknown\":\"ProtobufMessage\":private]=>\r\n            NULL\r\n          }\r\n        }\r\n        [\"catchablePokemons\":\"PokemonGoAPI\\Api\\Map\\MapObjects\":private]=>\r\n        array(1) {\r\n          [0]=>\r\n          object(POGOProtos\\Map\\Pokemon\\MapPokemon)#570 (8) {\r\n            [\"_unknown\":\"POGOProtos\\Map\\Pokemon\\MapPokemon\":private]=>\r\n            NULL\r\n            [\"spawnPointId\":\"POGOProtos\\Map\\Pokemon\\MapPokemon\":private]=>\r\n            string(11) \"2a32a170f4f\"\r\n            [\"encounterId\":\"POGOProtos\\Map\\Pokemon\\MapPokemon\":private]=>\r\n            NULL\r\n            [\"pokemonId\":\"POGOProtos\\Map\\Pokemon\\MapPokemon\":private]=>\r\n            int(127)\r\n            [\"expirationTimestampMs\":\"POGOProtos\\Map\\Pokemon\\MapPokemon\":private]=>\r\n            int(1469969208412)\r\n            [\"latitude\":\"POGOProtos\\Map\\Pokemon\\MapPokemon\":private]=>\r\n            float(-32.0577008121)\r\n            [\"longitude\":\"POGOProtos\\Map\\Pokemon\\MapPokemon\":private]=>\r\n            float(115.74406715)\r\n            [\"_unknown\":\"ProtobufMessage\":private]=>\r\n            NULL\r\n          }\r\n        }\r\n        [\"wildPokemons\":\"PokemonGoAPI\\Api\\Map\\MapObjects\":private]=>\r\n        array(1) {\r\n          [0]=>\r\n          object(POGOProtos\\Map\\Pokemon\\WildPokemon)#573 (9) {\r\n            [\"_unknown\":\"POGOProtos\\Map\\Pokemon\\WildPokemon\":private]=>\r\n            NULL\r\n            [\"encounterId\":\"POGOProtos\\Map\\Pokemon\\WildPokemon\":private]=>\r\n            NULL\r\n            [\"lastModifiedTimestampMs\":\"POGOProtos\\Map\\Pokemon\\WildPokemon\":private]=>\r\n            int(1469969106545)\r\n            [\"latitude\":\"POGOProtos\\Map\\Pokemon\\WildPokemon\":private]=>\r\n            float(-32.0577008121)\r\n            [\"longitude\":\"POGOProtos\\Map\\Pokemon\\WildPokemon\":private]=>\r\n            float(115.74406715)\r\n            [\"spawnPointId\":\"POGOProtos\\Map\\Pokemon\\WildPokemon\":private]=>\r\n            string(11) \"2a32a170f4f\"\r\n            [\"pokemonData\":\"POGOProtos\\Map\\Pokemon\\WildPokemon\":private]=>\r\n            object(POGOProtos\\Data\\PokemonData)#569 (32) {\r\n              [\"_unknown\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              NULL\r\n              [\"id\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"pokemonId\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(127)\r\n              [\"cp\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"stamina\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"staminaMax\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"move1\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"move2\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"deployedFortId\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              string(0) \"\"\r\n              [\"ownerName\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              string(0) \"\"\r\n              [\"isEgg\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              bool(false)\r\n              [\"eggKmWalkedTarget\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"eggKmWalkedStart\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"origin\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"heightM\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"weightKg\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"individualAttack\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"individualDefense\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"individualStamina\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"cpMultiplier\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"pokeball\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"capturedCellId\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"battlesAttacked\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"battlesDefended\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"eggIncubatorId\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              string(0) \"\"\r\n              [\"creationTimeMs\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"numUpgrades\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"additionalCpMultiplier\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"favorite\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"nickname\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              string(0) \"\"\r\n              [\"fromFort\":\"POGOProtos\\Data\\PokemonData\":private]=>\r\n              int(0)\r\n              [\"_unknown\":\"ProtobufMessage\":private]=>\r\n              NULL\r\n            }\r\n            [\"timeTillHiddenMs\":\"POGOProtos\\Map\\Pokemon\\WildPokemon\":private]=>\r\n            int(101867)\r\n            [\"_unknown\":\"ProtobufMessage\":private]=>\r\n            NULL\r\n          }\r\n        }\r\n        [\"decimatedSpawnPoints\":\"PokemonGoAPI\\Api\\Map\\MapObjects\":private]=>\r\n        array(0) {\r\n        }\r\n        [\"spawnPoints\":\"PokemonGoAPI\\Api\\Map\\MapObjects\":private]=>\r\n        array(4) {\r\n          [0]=>\r\n          object(POGOProtos\\Map\\SpawnPoint)#237 (4) {\r\n            [\"_unknown\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            NULL\r\n            [\"latitude\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            float(-32.0520830374)\r\n            [\"longitude\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            float(115.745916323)\r\n            [\"_unknown\":\"ProtobufMessage\":private]=>\r\n            NULL\r\n          }\r\n          [1]=>\r\n          object(POGOProtos\\Map\\SpawnPoint)#238 (4) {\r\n            [\"_unknown\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            NULL\r\n            [\"latitude\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            float(-32.0519601203)\r\n            [\"longitude\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            float(115.746101239)\r\n            [\"_unknown\":\"ProtobufMessage\":private]=>\r\n            NULL\r\n          }\r\n          [2]=>\r\n          object(POGOProtos\\Map\\SpawnPoint)#234 (4) {\r\n            [\"_unknown\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            NULL\r\n            [\"latitude\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            float(-32.0518572588)\r\n            [\"longitude\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            float(115.746193698)\r\n            [\"_unknown\":\"ProtobufMessage\":private]=>\r\n            NULL\r\n          }\r\n          [3]=>\r\n          object(POGOProtos\\Map\\SpawnPoint)#235 (4) {\r\n            [\"_unknown\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            NULL\r\n            [\"latitude\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            float(-32.0521858988)\r\n            [\"longitude\":\"POGOProtos\\Map\\SpawnPoint\":private]=>\r\n            float(115.745823864)\r\n            [\"_unknown\":\"ProtobufMessage\":private]=>\r\n            NULL\r\n          }\r\n        }\r\n        [\"gyms\":\"PokemonGoAPI\\Api\\Map\\MapObjects\":private]=>\r\n        array(0) {\r\n        }\r\n        [\"pokestops\":\"PokemonGoAPI\\Api\\Map\\MapObjects\":private]=>\r\n        array(0) {\r\n        }\r\n        [\"complete\":\"PokemonGoAPI\\Api\\Map\\MapObjects\":private]=>\r\n        bool(true)\r\n      }\r\n      [\"mapObjectsExpiry\":\"PokemonGoAPI\\Api\\Map\\Map\":private]=>\r\n      NULL\r\n      [\"lastMapUpdate\":\"PokemonGoAPI\\Api\\Map\\Map\":private]=>\r\n      float(1.46996910649E+12)\r\n    }\r\n    [\"latitude\":\"PokemonGoAPI\\Api\\PokemonGoAPI\":private]=>\r\n    float(-32.058087)\r\n    [\"longitude\":\"PokemonGoAPI\\Api\\PokemonGoAPI\":private]=>\r\n    float(115.744325)\r\n    [\"altitude\":\"PokemonGoAPI\\Api\\PokemonGoAPI\":private]=>\r\n    float(0)\r\n    [\"output\":\"PokemonGoAPI\\Api\\PokemonGoAPI\":private]=>\r\n    object(PokemonGoAPI\\Utils\\Output)#3 (6) {\r\n      [\"buffer\":\"PokemonGoAPI\\Utils\\Output\":private]=>\r\n      string(0) \"\"\r\n      [\"NONE\"]=>\r\n      int(0)\r\n      [\"INFO\"]=>\r\n      int(1)\r\n      [\"WARNING\"]=>\r\n      int(2)\r\n      [\"ERROR\"]=>\r\n      int(3)\r\n      [\"PK_GO_DEBUG\"]=>\r\n      bool(true)\r\n    }`\r\n\r\nThis is my result everytime for `$map->getCatchablePokemon()` any idea as to why this happens? I still can't get the `encounterId`"}}
{"actor":{"display_login":"curt2008"}}