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

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 1

    Adding Metadata with Invalid Characters

    Stack Overflow | 7 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