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

contents buffer are null

Open adobeSlash opened this issue 10 years ago • 12 comments

Description: Since this early morning I get an error when I try to getMapObjects..

Stacktrace : com.pokegoapi.exceptions.RemoteServerException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.api.map.Map.getMapObjects(Map.java:307) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:270) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:205) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:195)

Version: master

adobeSlash avatar Jul 29 '16 06:07 adobeSlash

Check out #327

a4andy avatar Jul 29 '16 06:07 a4andy

After updating to last revision on Development the problem is still there (the PR that should have fix it is merged with development).

com.pokegoapi.exceptions.RemoteServerException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.api.inventory.Inventories.updateInventories(Inventories.java:114) at com.pokegoapi.api.inventory.Inventories.updateInventories(Inventories.java:84) at com.pokegoapi.api.inventory.Inventories.(Inventories.java:74) at com.pokegoapi.api.PokemonGo.(PokemonGo.java:83)

servers are fine.

Hindi avatar Jul 29 '16 07:07 Hindi

currently working on it #335

Grover-c13 avatar Jul 29 '16 07:07 Grover-c13

This exception is showed up when you make too much request per seconds, we have fixed our code that was throwing this, now all the java lib users need to verify that they dont send too much request. Closing since the issue come from software using the java api, not the java api ifself.

vmarchaud avatar Jul 29 '16 10:07 vmarchaud

From the latest revision on the dev branch, everyone is having a success construction, you shouldnt have problem, some people said that they maybe have put a rate-limit on IP too, so care that you didnt have multiple object constructed at the same time to be sure.

vmarchaud avatar Jul 29 '16 10:07 vmarchaud

I made some test and still have null buffer thrown on catch pokemon sometime even if I wait for 300ms between catches. Also, shouldn't the API handle this delay instead of the application? If it has to be done this way in order to work properly no matter what happens, then maybe the user shouldn't handle him himself.

Hindi avatar Jul 29 '16 10:07 Hindi

Some people think it may be a limit per hour, i was going to collect some stats on it sometime

Grover-c13 avatar Jul 29 '16 10:07 Grover-c13

@Hindi If you had read what @Grover-c13 wrote in the first place, you'll know that we are working on this, it take time to write, pease be patient.

vmarchaud avatar Jul 29 '16 10:07 vmarchaud

@vmarchaud I know it takes time and I don't want to annoy people but you've closed the issue and said it's working when it's not, that's all.

Hindi avatar Jul 29 '16 10:07 Hindi

Waiting for 500ms between calls of getDetails seems to make it work.

DaveBben avatar Jul 30 '16 13:07 DaveBben

I am getting it when I am trying to log in itself.

Maybe I am doing something wrong.

Caused by: java.util.concurrent.ExecutionException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:111) at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:88) 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) ... 7 more Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:80) at com.pokegoapi.main.RequestHandler.run(RequestHandler.java:298) at java.lang.Thread.run(Unknown Source)

apeshave avatar Aug 18 '16 01:08 apeshave

Hi i am new to the Pokego-java api. I am trying to make an connection but getting this error aswell is there already a fix yet? Is there also someone that can tell me about if they changed the secret so that nobody can login?

Last question is there also someone that can explain how the api works in general. like example how to make a simple connection yourself. (maybe not a place to say it here in this comment section)

vamidi avatar Jun 14 '17 12:06 vamidi