Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Error while running #1120

Open
KEESSTARR opened this issue Aug 16, 2016 · 3 comments
Open

Error while running #1120

KEESSTARR opened this issue Aug 16, 2016 · 3 comments

Comments

@KEESSTARR
Copy link

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.

@marcelaraujo
Copy link

@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);

@ansalls
Copy link

ansalls commented Aug 17, 2016

#1093
See #1088 for solution

@kiaph
Copy link

kiaph commented Aug 31, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants