Armax / Pokemon-GO-node-api

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

Illegal buffer #184

Closed sau00 closed 8 years ago

sau00 commented 8 years ago

Time to time getting this kind of error

node_modules/bytebuffer/dist/bytebuffer-node.js:346 throw TypeError("Illegal buffer"); ^

TypeError: Illegal buffer at TypeError (native)

LASkuma commented 8 years ago

It's because server dropped your request.

Yesterday Niantic implemented a throttling system of 3 requests/second (I believe this is the limit, correct me if wrong) per account. https://github.com/AHAAAAAAA/PokemonGo-Map/issues/2632

firanto commented 8 years ago

I see. I guess we just need to catch it and continue the loop... :)