Top "Retrofit" questions

Retrofit is a type-safe REST client for Android and Java by Square, Inc.

OKHttp throwing an illegal state exception when I try to log the network response

I put the following interceptor on my OkHttp client: httpClient.addInterceptor(new Interceptor() { @Override public Response intercept(Chain chain) throws …

java android retrofit okhttp
ProGuard not working with okhttp

ProGuard won't play nice with okhttp and I keep getting the following Warnings: Warning:com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl: …

android android-studio proguard retrofit okhttp
Spring Boot multipartfile always null

I am using Spring Boot version = '1.4.0.RC1' with Spring Boot Stormpath 1.0.2. I am trying to use multipart file …

java spring-mvc spring-boot retrofit multipart
Handle Network error with Retrofit observable

When using Observables with Retrofit how do you handle Network failure? Given this code: Observable<GetJobResponse> observable = api.…

android observable retrofit rx-java
How do I get Response body when there is an error when using Retrofit 2.0 Observables

I am using Retrofit 2.0 to make api calls that return Observables. It all works good when the call went through …

android retrofit rx-java rx-android
Add an array as request parameter with Retrofit 2

I'm looking for way to add an int array (e.g [0,1,3,5]) as parameter in a GET request with retrofit 2. Then, …

android retrofit retrofit2
Use Retrofit methods more expressive way

I want to make void enqueue(Callback<T> callback); method invocation code block more expressive, Here is what …

android retrofit kotlin higher-order-functions
How to make retrofit API call using ViewModel and LiveData

this is the first time I'm trying to implement MVVM architecture, and I'm a bit confused about the correct way …

android mvvm retrofit android-livedata android-jetpack
Uploading file on server using retrofit

In my project, I've got to send an image taken from android device to server site, where it should be …

android file-upload multipart retrofit
Returning error from OKHttp interceptor (using retrofit)

I am using OkHttp with Retrofit to make my app's network requests. I am also using Interceptors for Authentication and …

java android retrofit interceptor okhttp