retrofit Questions

6

I'm trying to upload a lot of images to online server in the same time, but i can't i got this error EPIPE(broken pipe) 12-13 19:00:25.389 1776-1776/? E/netmgr: Failed to open QEMU pipe 'qemud:...
Gaslight asked 13/12, 2018 at 17:4

2

Solved

I am trying to convert following response with Retrofit 2 { "errorNumber":4, "status":0, "message":"G\u00f6nderilen de\u011ferler kontrol edilmeli", "validate":[ "Daha \u00f6nceden bu email i...
Overhappy asked 17/11, 2015 at 13:0

7

Below are the Dependencies which I have used implementation 'com.squareup.retrofit2:retrofit:2.0.2' implementation 'com.squareup.retrofit2:converter-gson:2.0.2' Below is the code which I am callin...
Bustard asked 20/10, 2020 at 5:50

5

hello my problem is the following, I have 2 fragments, one receives with SetFragmentResultListener and another sends with setFragmentResult The problem is that setFragmentResult does not work insid...
Accession asked 17/2, 2021 at 19:33

2

Solved

I am using Retrofit 2.2.0 and Retrofit SimpleXML Converter 2.2.0. I added SimpleXmlConverter to the Retrofit instance with the addConverterFactory method. The problem is that when I receive the re...
Laggard asked 17/4, 2017 at 19:11

4

I response this error when get JSON data by retrofit. List<NewLicense> result = null; Call<List<NewLicense>> serviceResult = ShahrdariApp.getShahrdariWebService().getLicenses(Co...
Endaendall asked 18/1, 2020 at 19:55

3

Solved

My app that is using Retrofit (v1.6.1) to connect to REST web services cannot connect to my local web server (running on localhost), this is the error I am getting. This is inside Nexus4 (v4.3) em...
Peppy asked 13/7, 2014 at 20:8

9

Solved

I am facing a weird issue in the release build of the app. Here's my exception Fatal Exception: java.lang.NullPointerException` throw with null exception in.hopq.hopq.authentication.models.AppUpda...
Isoelectronic asked 15/5, 2019 at 5:13

6

I recently upgraded to Android Studio Flamingo and AGP 8.0 My production builds with minfiy and shrinkResources enabled, doesn't allow retrofit to make calls. This is the error thrown. java.lang.Cl...
Hungerford asked 27/4, 2023 at 9:17

3

Solved

I have added both dependencies for Moshi and converter-Moshi but yet MoshiConverterFactory is not accessible and prompting error. Why am I facing this error? I tried to use scalar-converter which w...
Timorous asked 6/6, 2021 at 7:37

7

I am new to android development, and trying to call local .NET web api service in android via retrofit library. After starting my web api on IIS I am getting this error failed to connect to localho...
Showthrough asked 25/7, 2015 at 7:0

4

I'm using Retrofit 2 and I need to handle response error in JSON format. Below is the example of the response body. { "success": false, "error": { "message": { "name": [ "This input is requir...
Allegory asked 8/10, 2018 at 19:4

17

Solved

What is this error ? How can I fix this? My app is running but can't load data. And this is my Error: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ This is my f...
Frizzle asked 7/10, 2016 at 13:46

10

Solved

I am creating an android application which uses https for communication with the server. I am using retrofit and OkHttp for making requests. These works fine for standard http requests. The followi...
Granado asked 26/3, 2015 at 7:52

7

Solved

My api expects an empty json body ({ }) when making post requests. How do I set this up in Retrofit and Jackson? I tried passing null, and empty string, and "{}" but could not get this to work. @...
Spew asked 15/6, 2017 at 20:2

5

Solved

I'm using Retrofit 2.7.1 with Kotlin coroutines. I have a Retrofit service defined as such: @PUT("/users/{userId}.json") suspend fun updateUserProfile( @Path("userId") userId: String, @Query("d...
Broth asked 7/1, 2020 at 21:19

15

Solved

I can't find relevant methods in the Retrofit API for logging complete request/response bodies. I was expecting some help in the Profiler (but it only offers meta-data about response). I tried sett...
Habakkuk asked 19/2, 2014 at 16:22

20

Solved

I am using retrofit 2.0.0-beta1 with SimpleXml. I want the retrieve a Simple (XML) resource from a REST service. Marshalling/Unmarshalling the Simple object with SimpleXML works fine. When using t...
Affright asked 28/8, 2015 at 10:37

9

Solved

I'm trying to follow Retrofit's 2 tutorial, but on this part of the code there is a GsonConverterFactory that displays error Cannot resolve symbol: public class ServiceGenerator { public static ...
Casillas asked 23/10, 2015 at 14:9

1

I am trying to use a single model for both storing the data locally using Isar, and also for using with Retrofit for REST API requests. But Isar requires all the Linked classes to be defined with t...
Cacodemon asked 14/10, 2022 at 18:6

6

Solved

I am implementing retrofit and moshi to make requests to a server (I am newbie using retrofit). I follow some guides that I found on the internet on how to implement it but when launching the app I...
Suicidal asked 12/1, 2022 at 16:7

8

Solved

I need send a json to my webservice, json is: { "Sala": { "usuario": "%@", "adversario": "%@", "atualizacao": "%@", "device": "%@", "device_tipo": "ios" } } . I'm trying do it using Retr...
Chillon asked 15/12, 2014 at 13:36

2

Solved

Really stuck with translating multipart request from retrofit to ktor client. In retrofit I have following method: @Multipart @POST("rest/sendPhotos") suspend fun sendPhotos(@Part file...
An asked 29/12, 2023 at 12:0

14

Solved

I am trying to do a HTTP POST to server using Retrofit 2.0 MediaType MEDIA_TYPE_TEXT = MediaType.parse("text/plain"); MediaType MEDIA_TYPE_IMAGE = MediaType.parse("image/*"); ByteArrayOutputStrea...
Trixi asked 2/1, 2016 at 5:31

19

Solved

I want get RSS code from a URL with Retrofit and if I enter url staticly in the get annotation everything is OK but with dynamic url I get an error. My interface service : public interface AllNew...
Elidaelidad asked 6/2, 2015 at 17:22

© 2022 - 2025 — McMap. All rights reserved.