client.ApiException: java.net.ProtocolException: unexpected end of stream

GitHub | maneeshsahu | 3 months ago
  1. 0

    Java Codegen in Android sending incorrect content-length on POST

    GitHub | 3 months ago | maneeshsahu
    client.ApiException: java.net.ProtocolException: unexpected end of stream

    Root Cause Analysis

    1. client.ApiException

      java.net.ProtocolException: unexpected end of stream

      at cloud.artik.client.ApiClient$1.onFailure()
    2. cloud.artik.client
      ApiClient$1.onFailure
      1. cloud.artik.client.ApiClient$1.onFailure(ApiClient.java:1014)
      1 frame
    3. OkHttp
      NamedRunnable.run
      1. com.squareup.okhttp.Call$AsyncCall.execute(Call.java:185)
      2. com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
      2 frames
    4. Java RT
      ThreadPoolExecutor.runWorker
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      1 frame