{"action":"created","issue":{"url":"https://api.github.com/repos/stoffern/pokemongo-api/issues/97","repository_url":"https://api.github.com/repos/stoffern/pokemongo-api","labels_url":"https://api.github.com/repos/stoffern/pokemongo-api/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/stoffern/pokemongo-api/issues/97/comments","events_url":"https://api.github.com/repos/stoffern/pokemongo-api/issues/97/events","html_url":"https://github.com/stoffern/pokemongo-api/issues/97","id":168469268,"number":97,"title":"CatchPokemonMessage#spawn_point_guid is not a field: undefined","user":{"login":"delmotte","id":6682231,"avatar_url":"https://avatars.githubusercontent.com/u/6682231?v=3","gravatar_id":"","url":"https://api.github.com/users/delmotte","html_url":"https://github.com/delmotte","followers_url":"https://api.github.com/users/delmotte/followers","following_url":"https://api.github.com/users/delmotte/following{/other_user}","gists_url":"https://api.github.com/users/delmotte/gists{/gist_id}","starred_url":"https://api.github.com/users/delmotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delmotte/subscriptions","organizations_url":"https://api.github.com/users/delmotte/orgs","repos_url":"https://api.github.com/users/delmotte/repos","events_url":"https://api.github.com/users/delmotte/events{/privacy}","received_events_url":"https://api.github.com/users/delmotte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-30T14:15:33Z","updated_at":"2016-07-30T14:35:52Z","closed_at":null,"body":"I got a problem when trying to catch a pokemon, with both 'catch' and 'encounterAndCatch' method\r\n\r\nhere is the error : \r\n\r\n```\r\nError: .POGOProtos.Networking.Requests.Messages.CatchPokemonMessage#spawn_point_guid is not a field: undefined\r\n    at Error (native)\r\n    at MessagePrototype.set (/Users/delmotte/Project/PokemonGO/bot-test/node_modules/protobufjs/dist/protobuf.js:2472:35)\r\n    at MessagePrototype.set (/Users/delmotte/Project/PokemonGO/bot-test/node_modules/protobufjs/dist/protobuf.js:2466:38)\r\n    at Message (/Users/delmotte/Project/PokemonGO/bot-test/node_modules/protobufjs/dist/protobuf.js:2395:34)\r\n    at /Users/delmotte/Project/PokemonGO/bot-test/node_modules/pokemongo-api/dist/API.js:286:37\r\n    at Array.map (native)\r\n    at Connection._serializeRequest (/Users/delmotte/Project/PokemonGO/bot-test/node_modules/pokemongo-api/dist/API.js:276:19)\r\n    at Connection._callee2$ (/Users/delmotte/Project/PokemonGO/bot-test/node_modules/pokemongo-api/dist/API.js:125:28)\r\n    at tryCatch (/Users/delmotte/Project/PokemonGO/bot-test/node_modules/regenerator-runtime/runtime.js:62:40)\r\n    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/delmotte/Project/PokemonGO/bot-test/node_modules/regenerator-runtime/runtime.js:336:22)\r\n```\r\n\r\nI found the solution in 'catch' method, change field 'spawn_point_guid' by 'spawn_point_id' :\r\n```\r\nreturn this.parent.Call([{\r\n                  request: 'CATCH_POKEMON',\r\n                  message: {\r\n                    encounter_id: this.encounter_id,\r\n                    pokeball: pokeball || 1, // 2 for grate ball\r\n                    normalized_reticle_size: Math.min(1.95, _randgen2.default.rnorm(1.9, 0.05)),\r\n                    spawn_point_guid: this.spawn_point_id, // ----------- THIS LINE ---------\r\n                    hit_pokemon: true,\r\n                    spin_modifier: Math.min(0.95, _randgen2.default.rnorm(0.85, 0.1)),\r\n                    normalized_hit_position: 1.0\r\n                  }\r\n                }]);\r\n```"},"comment":{"url":"https://api.github.com/repos/stoffern/pokemongo-api/issues/comments/236368481","html_url":"https://github.com/stoffern/pokemongo-api/issues/97#issuecomment-236368481","issue_url":"https://api.github.com/repos/stoffern/pokemongo-api/issues/97","id":236368481,"user":{"login":"stoffern","id":943968,"avatar_url":"https://avatars.githubusercontent.com/u/943968?v=3","gravatar_id":"","url":"https://api.github.com/users/stoffern","html_url":"https://github.com/stoffern","followers_url":"https://api.github.com/users/stoffern/followers","following_url":"https://api.github.com/users/stoffern/following{/other_user}","gists_url":"https://api.github.com/users/stoffern/gists{/gist_id}","starred_url":"https://api.github.com/users/stoffern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoffern/subscriptions","organizations_url":"https://api.github.com/users/stoffern/orgs","repos_url":"https://api.github.com/users/stoffern/repos","events_url":"https://api.github.com/users/stoffern/events{/privacy}","received_events_url":"https://api.github.com/users/stoffern/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T14:35:52Z","updated_at":"2016-07-30T14:35:52Z","body":"@delmotte Added fix here: 5947bdaa5b51eeb8ce381e71c50644c81f77f734\r\n\r\n"}}
{"actor":{"display_login":"stoffern"}}