PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

API is broken at Feb 22 2017 3:20pm

Open tommywuhaojie opened this issue 9 years ago • 24 comments

Description: Unknown exception when logging in

Steps to reproduce: Use either Google or PTC method to login

Stacktrace W/System.err: Caused by: java.util.concurrent.ExecutionException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null W/System.err: at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:120) W/System.err: at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:97) W/System.err: at rx.internal.operators.OnSubscribeToObservableFuture$ToObservableFuture.call(OnSubscribeToObservableFuture.java:74) W/System.err: at rx.internal.operators.OnSubscribeToObservableFuture$ToObservableFuture.call(OnSubscribeToObservableFuture.java:43) W/System.err: at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) W/System.err: at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) W/System.err: at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) W/System.err: at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) W/System.err: at rx.Observable.subscribe(Observable.java:9957) W/System.err: at rx.Observable.subscribe(Observable.java:9924) W/System.err: at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:445) W/System.err: at rx.observables.BlockingObservable.first(BlockingObservable.java:168) W/System.err: at com.pokegoapi.util.AsyncHelper.toBlocking(AsyncHelper.java:45) W/System.err: ... 8 more W/System.err: Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null W/System.err: at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:89) W/System.err: at com.pokegoapi.main.RequestHandler.run(RequestHandler.java:381) W/System.err: ... 1 more

Version: latest version

tommywuhaojie avatar Feb 22 '17 23:02 tommywuhaojie

@btremote999 I checked PokeHashKey here https://github.com/Grover-c13/PokeGOAPI-Java/blob/Development/library/src/main/java/com/pokegoapi/util/hash/pokehash/PokeHashKey.java but getHeaderLong not in it

sino123 avatar Feb 23 '17 11:02 sino123

@sino123 Yeah, it isn't because it hasn't been updated here yet. You will have to use my fork for the fix, until it is merged.

Gegy avatar Feb 23 '17 12:02 Gegy

@btremote999 @sino123 Where can I buy a Hash API key? Could you suggest me some page? I found this: https://talk.pogodev.org/d/55-api-hashing-service-f-a-q

vagprogrammer avatar Feb 23 '17 16:02 vagprogrammer

@vagprogrammer Here's what I find: https://talk.pogodev.org/d/51-api-hashing-service-by-pokefarmer

There will be a more uptodated LegacyHasher API? Or here is the end of "free" acces to game's servers?

fsQuiroz avatar Feb 23 '17 16:02 fsQuiroz