Closed JosephSanjaya closed 3 years ago
Hi, Could you share your Retrofit Builder?
If you don't use the CoroutinesResponseCallAdapterFactory
or use it with another factory, RuntimeException
will happen.
this is my retrofit builder
val retrofit: Retrofit = Retrofit.Builder()
.baseUrl(Secured.getBaseUrlApi(isBareksa))
.client(okHttpClient)
.addCallAdapterFactory(CoroutineCallAdapterFactory())
.addConverterFactory(ScalarsConverterFactory.create())
.addConverterFactory(GsonConverterFactory.create())
.build()
ooh, I think this is the problem I thought it was the same as CoroutineCallAdapterFactory
Sorry, my bad it's fixed now
Thank you for fast response
Please complete the following information:
Describe the Bug: response that used Sandwich always failed, with exception like above
Expected Behavior: Response should be success because implementation without Sandwich had no problem
Implementation: