Android Question [SOLVED] Sanity Check: OkHttp_ResponseError and StatusCode=200 at same time?

Discussion in 'Android Questions' started by Sandman, Aug 17, 2018.

  1. Sandman

    Sandman Well-Known Member Licensed User

    I have a few users seeing a rare error that I have never seen myself when testing my app, so I'm working my way through the source to figure out what's happening. And now I have to ask a control question to the forum:

    In OkHttp, is it possible to enter ResponseError, and at the same time have the StatusCode be 200?

    If so, what could cause that?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Why are you using OkHttp instead of OkHttpUtils2?

    It is not possible. The StatusCode is only set for responses that were received properly and the only error possible in that case is that the response code is not 2x..
     
    Sandman likes this.
  3. Sandman

    Sandman Well-Known Member Licensed User

    Sorry, I made a typo, I'm using OkHttpUtils2.

    Thanks for answer
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice