contents buffer are null
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
Check out #327
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.
servers are fine.
currently working on it #335
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.
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.
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.
Some people think it may be a limit per hour, i was going to collect some stats on it sometime
@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 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.
Waiting for 500ms between calls of getDetails seems to make it work.
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)
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)