Armax / Pokemon-GO-node-api

Pokemon GO api node.js library
MIT License
875 stars 198 forks source link

EvolvePokemon throws Protobuff Error #192

Open NessDan opened 8 years ago

NessDan commented 8 years ago

When calling the EvolvePokemon function, an error is always returned:

"Illegal wire type for field Message.Field .ResponseEnvelop.Pokemon.id: 1 (0 expected)"

The Pokemon evolution succeeds, but it just always responds with that error.

falazar commented 8 years ago

message Pokemon { optional fixed64 id = 1;

'pokemon_id': pokemon.toString()

in the api call, then shoudl be ok

NessDan commented 8 years ago

Okay, so more info.

Updating pokemon_id in the message Pokemon {} to a fixed64 fixed that issue, one more issue came up with cp_multiplier though. It was fixed by changing it to a float

If one of the admins can update the proto file with that information, that'd be great