gallexme / pokemongo-api

22 stars 8 forks source link

Error altitude when run #15

Closed nguyendnhat closed 8 years ago

nguyendnhat commented 8 years ago

When i run file example\test.js I get Error. How fixed it? [i] Checking for login cache. [i] Logging in with cache. [i] Login cache saved to file! Error: .POGOProtos.Networking.Envelopes.RequestEnvelope#altitude is not a field: undefined at Error (native) at MessagePrototype.set (C:\Users\nhatnd\Documents\PROJECT\POKE\node_modules \protobufjs\dist\protobuf.js:2472:35) at MessagePrototype.set (C:\Users\nhatnd\Documents\PROJECT\POKE\node_modules \protobufjs\dist\protobuf.js:2466:38) at Message (C:\Users\nhatnd\Documents\PROJECT\POKE\node_modules\protobufjs\d ist\protobuf.js:2395:34) at Connection.serializeHeader (C:\Users\nhatnd\Documents\PROJECT\POKE\node modules\pokemongo-api\dist\API.js:337:18) at Connection._callee2$ (C:\Users\nhatnd\Documents\PROJECT\POKE\node_modules \pokemongo-api\dist\API.js:151:32) at tryCatch (C:\Users\nhatnd\Documents\PROJECT\POKE\node_modules\regenerator -runtime\runtime.js:62:40) at GeneratorFunctionPrototype.invoke as _invoke at GeneratorFunctionPrototype.prototype.(anonymous function) as next at step (C:\Users\nhatnd\Documents\PROJECT\POKE\node_modules\babel-runtime\h elpers\asyncToGenerator.js:17:30)

hunterxyz commented 8 years ago

That repository uses "node-pogo-protos": "^1.2.0", but when you try to install npm packages it download the latest version (1.5.0 for now) you should downgrade that package to 1.2.0 and it will work fine.

Jamby93 commented 8 years ago

PR #16 also includes temporary downgrade to 1.2.0 until implementation of the new RequestEnvelope

st0ffern commented 8 years ago

https://github.com/gallexme/pokemongo-api/pull/18