Unexpected end of stream on okhttp3

后端 未结 1 862
悲哀的现实
悲哀的现实 2021-02-09 06:49

I had followed this link to refresh access token. While adding Authenticator to okHttp getting error of Unexpected end of stream on okhttp3 from retrofit call

相关标签:
1条回答
  • 2021-02-09 07:51

    instead of

    UserLogin userLogin = call.execute().body();
    

    try

    retrofit2.Response<UserLogin> tokenResponse = call.execute();
    
    0 讨论(0)
提交回复
热议问题