PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Contents of buffer are null

Open ghost opened this issue 10 years ago • 21 comments

Description: When launching the bot I get this

Steps to reproduce:

  1. Launch the bot

Expected behavior: Bot should connect to PoGO server Actual behavior: PoGO return an invalid response (I guess)

Stacktrace (If it's a crash): Getting profile data from pogo server. Exception in thread "default" com.pokegoapi.exceptions.AsyncPokemonGoException: Unknown exception occurred. at com.pokegoapi.util.AsyncHelper.toBlocking(AsyncHelper.java:45) at com.pokegoapi.main.RequestHandler.sendServerRequests(RequestHandler.java:155) 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.Inventories.(Inventories.java:74) at com.pokegoapi.api.PokemonGo.getInventories(PokemonGo.java:130) at com.pokegoapi.api.player.PlayerProfile.getStats(PlayerProfile.java:304) at ink.abb.pogo.scraper.Bot.(Bot.kt:41) at ink.abb.pogo.scraper.MainKt.startBot(Main.kt:142) at ink.abb.pogo.scraper.MainKt.startDefaultBot(Main.kt:84) at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$1.invoke(PokemonGoBotApplication.kt:57) at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$1.invoke(PokemonGoBotApplication.kt:46) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18) Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at rx.exceptions.Exceptions.propagate(Exceptions.java:58) at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:465) at rx.observables.BlockingObservable.first(BlockingObservable.java:168) at com.pokegoapi.util.AsyncHelper.toBlocking(AsyncHelper.java:37) ... 12 more Caused by: java.util.concurrent.ExecutionException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:109) at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:86) at rx.internal.operators.OnSubscribeToObservableFuture$ToObservableFuture.call(OnSubscribeToObservableFuture.java:74) at rx.internal.operators.OnSubscribeToObservableFuture$ToObservableFuture.call(OnSubscribeToObservableFuture.java:43) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) at rx.Observable.subscribe(Observable.java:9957) at rx.Observable.subscribe(Observable.java:9924) at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:445) ... 14 more 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)

Version: Last version (pulled and builded the repo before re-testing) Operating System: Debian 7 Java version: java version "1.8.0_101"

ghost avatar Aug 03 '16 20:08 ghost

+1

prestonvanloon avatar Aug 03 '16 20:08 prestonvanloon

+1 same error Running Ubuntu 16.04.1 java version "1.8.0_101"

BartWillems avatar Aug 03 '16 20:08 BartWillems

Same here

W7 x64 java version "1.8.0_74"

Shuntor avatar Aug 03 '16 20:08 Shuntor

...... http://ispokemongodownornot.com/

pashorizer avatar Aug 03 '16 20:08 pashorizer

^ Tells us that it is not down

ghost avatar Aug 03 '16 20:08 ghost

Lol, no wonder. it's down..

husbeard avatar Aug 03 '16 20:08 husbeard

Okay now i'm becoming:

Exception in thread "main" 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(Thread.java:745)

Shazgul avatar Aug 03 '16 20:08 Shazgul

same here if any of yours start working, update us

edwincheung555 avatar Aug 03 '16 20:08 edwincheung555

image

ghost avatar Aug 03 '16 20:08 ghost

@Peyphour Yeah, only that there is a huge big red flagged "CRIT" on login.

pashorizer avatar Aug 03 '16 20:08 pashorizer

I can connect with the Android app

ghost avatar Aug 03 '16 20:08 ghost

Some issue for me

etkstim avatar Aug 03 '16 20:08 etkstim

Oh and I use Google and not PTC

ghost avatar Aug 03 '16 20:08 ghost

Same here. App is fine. Exception in thread "Main" when running the bot. Windows 7. Java 1.8 101. Alpha 4

mojin7 avatar Aug 03 '16 20:08 mojin7

+1

dwfz avatar Aug 03 '16 20:08 dwfz

Google login seems down as well

ghost avatar Aug 03 '16 20:08 ghost

+1

ke11 avatar Aug 03 '16 20:08 ke11

Mine is not working for PTC or Google login

KEESSTARR avatar Aug 03 '16 20:08 KEESSTARR

So it seems to be an issue with PoGO servers only, we just have to wait (and I used a lucky egg :cry:)

ghost avatar Aug 03 '16 20:08 ghost

I can now login, but the bot cannot retrieve pokestops

ghost avatar Aug 03 '16 20:08 ghost