Start a new topic

Protocol exception

Hello,


I sometimes have this error :

 

Non-fatal Exception: java.net.ProtocolException: expected 505 bytes but received 552
       at com.android.okhttp.internal.http.HttpConnection$FixedLengthSink.write(HttpConnection.java:347)
       at com.android.okhttp.okio.RealBufferedSink.close(RealBufferedSink.java:234)
       at com.android.okhttp.okio.RealBufferedSink$1.close(RealBufferedSink.java:209)
       at com.google.api.client.http.javanet.NetHttpRequest.addHeader(Unknown Source)
       at com.google.api.client.http.HttpRequest.execute(Unknown Source)
       at com.kinvey.java.core.AbstractKinveyClientRequest.executeUnparsed(Unknown Source)
       at com.kinvey.java.core.AbstractKinveyClientRequest.executeUnparsed(Unknown Source)
       at com.kinvey.java.core.AbstractKinveyClientRequest.execute(Unknown Source)
       at com.kinvey.java.offline.AbstractKinveyOfflineClientRequest.offlineFromService(Unknown Source)
       at com.kinvey.java.offline.OfflinePolicy$1.execute(Unknown Source)
       at com.kinvey.java.offline.AbstractKinveyOfflineClientRequest.execute(Unknown Source)
       at com.kinvey.android.AsyncAppData$SaveRequest.executeAsync(Unknown Source)
       at com.kinvey.android.AsyncClientRequest.doInBackground(Unknown Source)
       at android.os.AsyncTask$2.call(AsyncTask.java:295)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at com.kinvey.android.AsyncClientRequest$KinveySerialExecutor$1.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
       at java.lang.Thread.run(Thread.java:818)

 

Is it a known error ?


Thank you but I'm not able to reproduce it again.

Hi,


Can you please answer a couple of questions for me:

  1. What is the KID of your app?
  2. Which version of Kinvey Android SDK are you using?
  3. Can you share code snippets of relevant part of your code?


Also, if you can give me the scenario/use-case for this error to occur, that would be helpful too.



Regards,

Wani

Kinvey Support

Login or Signup to post a comment