Error running loop BotLoop & ProfileLoop!
Error running loop BotLoop! com.pokegoapi.exceptions.RemoteServerException: Contents of buffer are null at com.pokegoapi.util.FutureWrapper.toBlocking(FutureWrapper.java:119) at com.pokegoapi.main.RequestHandler.sendServerRequests(RequestHandler.java:154) at com.pokegoapi.api.inventory.Inventories.updateInventories(Inventories.java:108) at com.pokegoapi.api.inventory.Inventories.updateInventories(Inventories.java:84) at com.pokegoapi.api.map.pokemon.CatchablePokemon$3.handle(CatchablePokemon.java:419) at com.pokegoapi.api.map.pokemon.CatchablePokemon$3.handle(CatchablePokemon.java:400) at com.pokegoapi.util.FutureWrapper.getResult(FutureWrapper.java:78) at com.pokegoapi.util.FutureWrapper.get(FutureWrapper.java:53) at com.pokegoapi.util.FutureWrapper.toBlocking(FutureWrapper.java:108) at com.pokegoapi.util.FutureWrapper.toBlocking(FutureWrapper.java:94) at com.pokegoapi.api.map.pokemon.CatchablePokemon.catchPokemon(CatchablePokemon.java:346) at ink.abb.pogo.scraper.util.pokemon.CatchablePokemonKt.catch(CatchablePokemon.kt:27) at ink.abb.pogo.scraper.util.pokemon.CatchablePokemonKt.catch(CatchablePokemon.kt:115) at ink.abb.pogo.scraper.util.pokemon.CatchablePokemonKt.catch(CatchablePokemon.kt:42) at ink.abb.pogo.scraper.tasks.CatchOneNearbyPokemon.run(CatchOneNearbyPokemon.kt:62) at ink.abb.pogo.scraper.Bot.task(Bot.kt:201) at ink.abb.pogo.scraper.Bot$start$4.invoke(Bot.kt:123) at ink.abb.pogo.scraper.Bot$start$4.invoke(Bot.kt:34) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:163) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:34) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18) Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:78) at com.pokegoapi.main.RequestHandler.run(RequestHandler.java:292) at java.lang.Thread.run(Thread.java:745)
Error running loop ProfileLoop! com.pokegoapi.exceptions.RemoteServerException: Contents of buffer are null at com.pokegoapi.util.FutureWrapper.toBlocking(FutureWrapper.java:119) at com.pokegoapi.util.FutureWrapper.toBlocking(FutureWrapper.java:94) at com.pokegoapi.api.map.fort.Pokestop.getDetails(Pokestop.java:229) at ink.abb.pogo.scraper.gui.SocketServer.sendPokestop(SocketServer.kt:105) at ink.abb.pogo.scraper.tasks.LootOneNearbyPokestop.run(LootOneNearbyPokestop.kt:52) at ink.abb.pogo.scraper.Bot.task(Bot.kt:201) at ink.abb.pogo.scraper.tasks.ProcessPokestops.run(ProcessPokestops.kt:52) at ink.abb.pogo.scraper.Bot.task(Bot.kt:201) at ink.abb.pogo.scraper.Bot$start$4.invoke(Bot.kt:130) at ink.abb.pogo.scraper.Bot$start$4.invoke(Bot.kt:34) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:163) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:34) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18) Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:78) at com.pokegoapi.main.RequestHandler.run(RequestHandler.java:292) at java.lang.Thread.run(Thread.java:745) com.pokegoapi.exceptions.RemoteServerException: Contents of buffer are null at com.pokegoapi.util.FutureWrapper.toBlocking(FutureWrapper.java:119) at com.pokegoapi.main.RequestHandler.sendServerRequests(RequestHandler.java:154) at com.pokegoapi.api.inventory.Inventories.updateInventories(Inventories.java:108) at com.pokegoapi.api.inventory.Inventories.updateInventories(Inventories.java:84) at com.pokegoapi.api.inventory.Hatchery.queryHatchedEggs(Hatchery.java:74) at ink.abb.pogo.scraper.tasks.HatchEggs.run(HatchEggs.kt:22) at ink.abb.pogo.scraper.Bot.task(Bot.kt:201) at ink.abb.pogo.scraper.Bot$start$3.invoke(Bot.kt:115) at ink.abb.pogo.scraper.Bot$start$3.invoke(Bot.kt:34) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:163) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:34) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18) Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:78) at com.pokegoapi.main.RequestHandler.run(RequestHandler.java:292) at java.lang.Thread.run(Thread.java:745)
what version are you using?
v0.5.0 alpha 4
java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
I have the same problem
Commit 6d361a6
java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
I've been having this problem since alpha2, which was the first version I used. Normally the bot will recover, but after exactly 90 minutes, the bot just gets stuck on this issue, forcing a restart. I didn't comment before because there have been several posts about this, and I didn't wanna clutter the devs feeds.
Same here. For me the Bot starts and stays in one location and loots the same pokestop over and over.
I'm using 0.4.3 and having the same issue. On my side, the bot often spams this error but it somehow recovers and still runs, moves, catches pokemon, gets pokestops rewards, and often (but not always I noticed) puts eggs into the incubators. Still, it would be better if there was no error :).
My error specifically addresses the RPC updateInventories (at com.pokegoapi.api.inventory.Inventories.updateInventories(Inventories.java:114)) and removeItem (at com.pokegoapi.api.inventory.ItemBag.removeItem(ItemBag.java:82)). Here the full stack trace of the errors:
com.pokegoapi.exceptions.RemoteServerException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null
at com.pokegoapi.api.inventory.ItemBag.removeItem(ItemBag.java:82)
at ink.abb.pogo.scraper.tasks.DropUselessItems.run(DropUselessItems.kt:24)
at ink.abb.pogo.scraper.Bot.task(Bot.kt:163)
at ink.abb.pogo.scraper.Bot$start$4.invoke(Bot.kt:111)
at ink.abb.pogo.scraper.Bot$start$4.invoke(Bot.kt:30)
at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:128)
at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:30)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18)
Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null
at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:66)
at com.pokegoapi.api.inventory.ItemBag.removeItem(ItemBag.java:80)
... 7 more
com.pokegoapi.exceptions.RemoteServerException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null
at com.pokegoapi.api.inventory.ItemBag.removeItem(ItemBag.java:82)
at ink.abb.pogo.scraper.tasks.DropUselessItems.run(DropUselessItems.kt:24)
at ink.abb.pogo.scraper.Bot.task(Bot.kt:163)
at ink.abb.pogo.scraper.Bot$start$4.invoke(Bot.kt:111)
at ink.abb.pogo.scraper.Bot$start$4.invoke(Bot.kt:30)
at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:128)
at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:30)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18)
Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null
at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:66)
at com.pokegoapi.api.inventory.ItemBag.removeItem(ItemBag.java:80)
... 7 more
Same here with version 0.4.3
As far as I know this is fixed (the exact 90 minutes timeout); was a bug in the API.
Yep, I have the same exact problem. But this only happens on my google accounts. The PTC accounts seem to run better. This is happening in alpha 4 for me. Output; 03 Aug 06:50:11: Error running loop BotLoop! com.pokegoapi.exceptions.LoginFailedException: Error in API Url at com.pokegoapi.main.RequestHandler.internalSendServerRequests(RequestHandler.java:216) at com.pokegoapi.main.RequestHandler.run(RequestHandler.java:289) at java.lang.Thread.run(Unknown Source) 03 Aug 06:50:12: Stopping SocketServer... 03 Aug 06:50:12: Stopping bot loops... 03 Aug 06:50:12: All bot loops stopped. 03 Aug 06:50:16: Stopped SocketServer.
Not sure about the time frame, but this one happened less than 60 minutes in.
Hi, can confirm that it still happens with the stable 0.5.0 but only with google accounts. I'll write a watchdog for this.