Category "retrofit"

Edited: Retrofit and CompletableFuture, is there a way to not rely on the underlying connection pool?

Original question: OkHttp, is there a way to not rely on a connection pool? Hey OkHttp users and/or contributors! Is there a way to use an OkHttpClient withou

How to POST Object Array with Retrofit?

I send the data from the postman like this: {"contacts":[ { "idContact": "201", "name": "Joseph", "lastName": "Herrera",

Mock Retrofit error okhttp3.ResponseBody$1 cannot be cast

I'm trying to test a snippet of my code that uses retrofit, so I've created an interface to "mock" the return, it works in parts, it can invoke the onresponse o

java.lang.IllegalArgumentException: HTTP method annotation is required (e.g., @GET, @POST, etc.).Error when trying call apiInterface GET request

I get error when trying to call API interface get request. I am trying to pass a value through GET method. But I get this error in logcat Caused by: java.lang

What is this dependency error with Report portal?

I have Cucumber Jbehave Test Automation framework which I am trying to sync up with Report Portal. I updated pom.xml, log4j2.xml and ReportPortal.properties fil

App crash when It makes API call using Retrofit on Android 12 API 32

Can anybody help me please. I already have added FLAG_IMMUTABLE flag to all pending intents for supporting Android 12, but when try to call any API using retrof

App crash when It makes API call using Retrofit on Android 12 API 32

Can anybody help me please. I already have added FLAG_IMMUTABLE flag to all pending intents for supporting Android 12, but when try to call any API using retrof

rxjava3 - setImage using databinding

I still don't understand why the successful Retrofit call does not display the image you want to download. Can any of you spot it? Could be dependencies: im

After upgrading gradle to 4.0.0, retrofit do not receive response anymore

After upgrading from gradle 3.6.3 to 4.0.0, retrofit only able to send request but not able to receive response. From the logging I can only see: I/okhttp.OkHtt

Retrofit call in Kotlin Coroutines viewModelScope

Recently I've updated my ViewModel to use new viewModelScope. From its implementation, I see that Dispatchers.Main.immediate is set as the default CoroutineDisp

Retrofit call in Kotlin Coroutines viewModelScope

Recently I've updated my ViewModel to use new viewModelScope. From its implementation, I see that Dispatchers.Main.immediate is set as the default CoroutineDisp

How to parse raw data in android kotlin using retrofit?

I have a webservice api which is having some raw data. No json structure data. And all i want to parse it. This is the response i am getting from an api. And h

Cancel all Previous Api call in Android - Retrofit - Using module

I have created below module in my android application. val appNetworkModule = module { // Dependency: OkHttpClient single { var okHttpClient=OkHttpClient.Bu

Cannot resolve method SubscribeOn - RxJava

I am very new to RxJava, I am trying to make Retrofit calls using RxJava. When I write this code on SubscribeOn it says 'Cannot resolve method SubscribeOn(io.re

Android RecyclerView only contain one item after adding items got from asynchronous retrofit calls

I have a recycler view for image display with a simple adapter. public class ImageListAdapter extends RecyclerView.Adapter<ImageListAdapter.SingleItemRowHold

Error: Program type already present: okhttp3.Address

I have added a new jar file as a module and faced with the above issue. I have already implemented okHttp in my apps gradle file. Seems like the jar file also i

HTTP 400 Bad Request - Invalid Header with Retrofit on Android

I'm migrating my Android project from Apache HttpClient to Retrofit with OkHttp. POST/PUT request return error, even though the application custom headers are t

What is the Chain object in OkHttp Interceptors? Retrofit

I am watching a tutorial on how to add headers with OkHttp Interceptors, but I am confused about a few things. What is a Chain object? What does Request origina

Does OkHttp support accepting self-signed SSL certs?

I'm working for a customer who has a server with self-signed SSL cert. I'm using Retrofit + CustomClient using wrapped OkHttp client: RestAdapter restAdapter