Category "retrofit2"

org.kodein.di.Kodein$NotFoundException: No binding found for bind<LLApi>() with ?<LoginFragment>().? { ? }

Iam doing a project with objectbox + retrofit + kodein. But I'm getting this error. org.kodein.di.Kodein$NotFoundException: No binding found for bind<LLApi&g

Android app crash okhttp3 HTTP FAILED: javax.net.ssl.SSLException: Read error: I/O error during system call, Software caused connection abort

I am working on android native kotlin project. I am testing app in android real Oneplus 6 device with Android version 10. Please find below details from build.

Retrieving a plain text error message from a call response

I am building out the login form for a client, and their backend, upon successfully authenticating the user, returns the user validation data in a JSONObject as

Cancel multiple Retrofit API calls at once

Past few days I am searching for a Retrofit2 feature. Is there any option or way to cancel multiple API calls at once, requested from a client? For example, I h

Retrofit 2 Response is null even when response code is 200 and response.isSuccessful() is true

My json response file is : { "access_token": "3lfX6-GCJv8uWZE8h8OSDL5eY5oiiInNjLKZTy2ZFxj7Tru4Ounb3jIdPGMe48Ed6QchTGI3il3NxAOTdHe-3hc-1jAsqiCk6Jq_w5DfRESOfj

Sending Data in Body in retrofit kotlin

I am using retrofit for calling the API i have to send the data in Body as we send in Java @Body but don't know how to parse the data... { "appType": "EXTERN

How to handle Single<Single<String>> in RX?

I have an api with a method fun getList( @Path("array") array: String ): Single<List<EpisodeRetrofitModel>> I need an argument to u

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

Retrofit2 post request is successful but I'm not able to retrieve token from response body

So I'm trying to making a login(post) request to an API (https://reqres.in/api/login) with retrofit 2. The connection was successful as the response code is 200

Retrofit2 not working when enabling Proguard

I have an application which uses retrofit to fetch logo form an API. When i don't obfuscate and shrink my code, everything works fine. But when i enable it, th

retrofit 2 @path Vs @query

I am new to retrofit 2 library.I read several articles to get started as a beginner and I managed to fetch XML data from my RESTful API without specifying param

How to send parameters for get request using retrofit and kotlin Coroutines.?

I was following the tutorial from https://proandroiddev.com/suspend-what-youre-doing-retrofit-has-now-coroutines-support-c65bd09ba067. I am having difficulty t

Parameter type must not include a type variable or wildcard

in my android app I use Retrofit 2: public enum OperationType { @SerializedName("payment") PAYMENT, @SerializedName("payout") PAYOUT, @Seri

Retrofit 2 send an empty array

I'm sending an array of integers to the backend via this Retrofit interface: @PATCH("save/ids") @FormUrlEncoded Call<Output> saveIds(@Field("ids[]") List