Top "Retrofit" questions

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

javax.net.ssl.SSLException: Read error: ssl=0x9524b800: I/O error during system call, Connection reset by peer

Our clients are starting to see 100s of these "SSLException error - Connection reset by peer" over the last couple …

android http ssl retrofit okhttp
Retrofit2 Android: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

I know this is not the first time someone asking about this problem but with Retrofit2 I can't find the …

java android json retrofit retrofit2
When should one use RxJava Observable and when simple Callback on Android?

I'm working on networking for my app. So I decided to try out Square's Retrofit. I see that they support …

android retrofit rx-java
Unable to create converter for my class in Android Retrofit library

Im migrating from using Volley to Retrofit, I already have gson class that I used before for converting JSONObject reponse …

android gson retrofit
How to return 404 response status in Spring Boot @ResponseBody - method return type is Response?

I'm using Spring Boot with @ResponseBody based approach like the following: @RequestMapping(value = VIDEO_DATA_PATH, method = RequestMethod.GET) public @…

java spring http-status-code-404 retrofit
How should I handle "No internet connection" with Retrofit on Android

I'd like to handle situations when there is no internet connection. Usually I'd run: ConnectivityManager cm = (ConnectivityManager)context.getSystemService(Context.…

android retrofit
Unable to create call adapter for class example.Simple

I am using retrofit 2.0.0-beta1 with SimpleXml. I want the retrieve a Simple (XML) resource from a REST service. Marshalling/…

java rest retrofit simple-framework
Can Retrofit with OKHttp use cache data when offline

I'm trying to use Retrofit & OKHttp to cache HTTP responses. I followed this gist and, ended up with this …

java caching retrofit okhttp offline-caching
Retrofit2 Authorization - Global Interceptor for access token

I'm trying to use Retrofit2, I want to add Token to my Header Like this: Authorization: Bearer Token but the …

android retrofit okhttp
Add Header Parameter in Retrofit

I'm trying to call an API which requires me to pass in an API key. My Service call using HttpURLConnection …

android retrofit httpurlconnection