pogodevorg / pgoapi-go

Unofficial PokemonGO API in Go
https://pogodev.org
MIT License
66 stars 29 forks source link

Bad wiretype error when calling Session.GetPlayerMap or Announce #15

Closed moddyz closed 8 years ago

moddyz commented 8 years ago

To reproduce, basically set up a valid Session, initialize it, and call GetPlayerMap or Announce.

Error message:

The response could not be read: proto: bad wiretype for field protos.GetMapObjectsResponse.MapCells: got wiretype 0, want 2
nazwa commented 8 years ago

@moddyz did you find a solution to this?

zeevallin commented 8 years ago

I think this is an edge case where the response returns a proto message that is empty. We should safe-guard, but I want to make sure exactly what it is.

moddyz commented 8 years ago

Still waiting on the devs to figure out unknown6... It looks like they're almost done!

nazwa commented 8 years ago

Ah, so the problem is linked with the recent api change? Great, good to know!

moddyz commented 8 years ago

Oh no, I just meant I haven't done any work on it since the API change, since map requests return nothing :(

Based on the date of when I saw this issue, I think it's unrelated. I think the API broke 3 days ago - I saw this on the day before

zeevallin commented 8 years ago

@moddyz @nazwa since the encrypt lib is now reverse engineered, I will start working on an implementation for that then get back to dealing with issues.

moddyz commented 8 years ago

@zeeraw @nazwa I've been testing the python API. Looks like an account needs to accept the T&C now before proper map data is returned. Just droppin a note

nazwa commented 8 years ago

Ha, how sneaky. I'll give that a go in a second!

zeevallin commented 8 years ago

Come to the discord channel and ask for access to magiclibâ„¢ in the #golang channel.