PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Error while running

Open KEESSTARR opened this issue 9 years ago • 3 comments

Description: The error occurs when running normally and then resumes the normal process, this does happen multiple times.

Steps to reproduce:

  1. Run the bot
  2. Error while running
  3. Continues normal process

Expected behavior: Run smoothly without error

Actual behavior: Runs for about 30 sec and error shows up frequently

Stacktrace (If it's a crash):

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.player.PlayerProfile.acceptLevelUpRewards(PlayerProfile.java:123) at ink.abb.pogo.scraper.tasks.UpdateProfile.run(UpdateProfile.kt:32) at ink.abb.pogo.scraper.Bot.task(Bot.kt:254) at ink.abb.pogo.scraper.Bot$start$3.invoke(Bot.kt:137) at ink.abb.pogo.scraper.Bot$start$3.invoke(Bot.kt:35) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:202) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:35) 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) ... 9 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) ... 11 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:296) at java.lang.Thread.run(Thread.java:745)

Version: 0.6.0

Operating System: OSX El Capitan v10.11.6

Java version: java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Leave this sentence in your issue as proof that you have read and used this template.

KEESSTARR avatar Aug 16 '16 19:08 KEESSTARR

@KEESSTARR this error comes from a profile update request which probably should failed

     * Updates the player profile with the latest data.
     *
     * @throws LoginFailedException  the login failed exception
     * @throws RemoteServerException the remote server exception
     */
    public void updateProfile() throws RemoteServerException, LoginFailedException {

        GetPlayerMessage getPlayerReqMsg = GetPlayerMessage.newBuilder().build();
        ServerRequest getPlayerServerRequest = new ServerRequest(RequestType.GET_PLAYER, getPlayerReqMsg);
        api.getRequestHandler().sendServerRequests(getPlayerServerRequest);

marcelaraujo avatar Aug 16 '16 20:08 marcelaraujo

#1093 See #1088 for solution

ansalls avatar Aug 17 '16 15:08 ansalls

honestly I think it means you have been flagged to be banned.

kiaph avatar Aug 31 '16 21:08 kiaph