Grover-c13/PokeGOAPI-Java

Is API working for you ?

Closed this issue · 5 comments

Description:
Execution of all samples throws exception. I try with Google Account and PTC Account. With and without Hash Key -> same result.

Steps to reproduce:

  1. Execute one of samples

Stacktrace (If it's a crash):
Exception in thread "main" com.pokegoapi.exceptions.AsyncPokemonGoException: Unknown exception occurred. at com.pokegoapi.util.AsyncHelper.handleBlockingException(AsyncHelper.java:81) at com.pokegoapi.util.AsyncHelper.handleBlockingException(AsyncHelper.java:79) at com.pokegoapi.util.AsyncHelper.toBlocking(AsyncHelper.java:47) at com.pokegoapi.main.RequestHandler.sendServerRequests(RequestHandler.java:173) at com.pokegoapi.api.player.PlayerProfile.updateProfile(PlayerProfile.java:123) at com.pokegoapi.api.PokemonGo.initialize(PokemonGo.java:221) at com.pokegoapi.api.PokemonGo.login(PokemonGo.java:216) at com.pokegoapi.examples.TravelToPokestopExample.main(TravelToPokestopExample.java:62) Caused by: java.util.concurrent.ExecutionException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:120) at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:97) 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) at rx.observables.BlockingObservable.first(BlockingObservable.java:168) at com.pokegoapi.util.AsyncHelper.toBlocking(AsyncHelper.java:45) ... 5 more Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:89) at com.pokegoapi.main.RequestHandler.run(RequestHandler.java:381) at java.lang.Thread.run(Thread.java:745)

Version:
Current developer branch

I've got the same issue. Tried putting a while loop around the login as suggested in #726 but not having any luck

Gegy commented

Should now be fixed on this repository.