java.net.ProtocolException: exceeded content-length limit of 186 bytes

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    Adding Metadata with Invalid Characters

    Stack Overflow | 5 months ago | Javier Donis Muoz
    java.net.ProtocolException: exceeded content-length limit of 186 bytes

    Root Cause Analysis

    1. java.net.ProtocolException

      exceeded content-length limit of 186 bytes

      at com.android.okhttp.internal.http.RetryableSink.write()
    2. Android
      RetryableSink.write
      1. com.android.okhttp.internal.http.RetryableSink.write(RetryableSink.java:58)
      1 frame
    3. com.android.okhttp
      RealBufferedSink$1.close
      1. com.android.okhttp.okio.RealBufferedSink.close(RealBufferedSink.java:234)
      2. com.android.okhttp.okio.RealBufferedSink$1.close(RealBufferedSink.java:209)
      2 frames
    4. Java RT
      OutputStreamWriter.close
      1. java.io.OutputStreamWriter.close(OutputStreamWriter.java:144)
      1 frame