David Marin
02/25/2021, 8:12 AMto.hopin.android.core.exceptions.DecodeNetworkException: Couldn't decode response from /api/v2/events/{eventId}/locale
at to.hopin.android.core.moshi.ErrorAwareMoshiResponseBodyConverter.convert(ErrorAwareMoshiConverterFactory.kt:69)
at to.hopin.android.core.moshi.ErrorAwareMoshiResponseBodyConverter.convert(ErrorAwareMoshiConverterFactory.kt:60)
at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:243)
at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:153)
at com.google.firebase.perf.network.InstrumentOkHttpEnqueueCallback.onResponse(InstrumentOkHttpEnqueueCallback.java:69)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: com.squareup.moshi.JsonDataException: com.squareup.moshi.JsonDataException: Expected a name but was NULL at path $.custom_text at $.custom_text
at com.squareup.moshi.AdapterMethodsFactory$1.fromJson(AdapterMethodsFactory.java:101)
at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:46)
at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:27)
at to.hopin.android.core.moshi.ErrorAwareMoshiResponseBodyConverter.convert(ErrorAwareMoshiConverterFactory.kt:66)
at to.hopin.android.core.moshi.ErrorAwareMoshiResponseBodyConverter.convert(ErrorAwareMoshiConverterFactory.kt:60)
at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:243)
at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:153)
at com.google.firebase.perf.network.InstrumentOkHttpEnqueueCallback.onResponse(InstrumentOkHttpEnqueueCallback.java:69)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: com.squareup.moshi.JsonDataException: Expected a name but was NULL at path $.custom_text
Any ideas?jessewilson
02/25/2021, 12:45 PMjessewilson
02/25/2021, 12:46 PMDavid Marin
02/25/2021, 2:38 PMjw
02/26/2021, 6:50 PMjw
02/26/2021, 6:51 PMmbonnin
03/03/2021, 3:29 PMTimeouts
with okio on native ? Looks like it's mostly a JVM thing ?mbonnin
03/03/2021, 3:30 PMselect
or something else? Or is there a fundamental reason this wouldn't work ?jw
03/03/2021, 3:34 PMjw
03/04/2021, 12:16 PMjw
03/04/2021, 12:17 PMRohan Maity
03/05/2021, 4:08 AMGunis
03/10/2021, 12:24 PMMoshi
adapter (for serialization only) is not being called? If i replace ApiType
with the specfic enum type (Gender
) it works.
class ApiTypeAdapter {
@ToJson
fun toJson(apiType: ApiType): Int {
return apiType.id
}
}
interface ApiType {
val id: Int
}
enum class Gender: ApiType {
MALE {
override val id: Int = 1
},
FEMALE {
override val id: Int = 2
}
}
myanmarking
03/10/2021, 1:30 PMsaket
03/10/2021, 4:39 PMsaket
03/10/2021, 4:40 PMpniederw
03/15/2021, 11:49 PMcom.squareup.moshi.JsonReader
read from a String?jw
03/15/2021, 11:50 PMjw
03/16/2021, 12:02 AMpniederw
03/16/2021, 12:09 AMJsonReader.of(Buffer().write(byteArray))
. Is this right?pniederw
03/16/2021, 12:12 AM<http://java.net|java.net>.http.HttpClient.sendAsync()
without blocking the thread.)KamilH
03/17/2021, 10:52 AMSQLDelight's
generated classes/interfaces as internal
? I would like to use it in the library (multiplatform, targeting iOS and Android) and I don’t want to pollute the public interface with these generated types
I saw this issue: https://github.com/cashapp/sqldelight/issues/1333 but unfortunately hiding database in different gradle module is not an option, because of lack of native possibility to build library from multiple modules (fataar)alex.tavella
03/23/2021, 5:03 PM[OkHttp]
What are exactly readTimeout
, connectTimeout
and writeTimeout
? If we are using default values for them (which are 10s) with a single retry, is it correct to say that the user might have to wait at most 2 * (10 + 10 +10)=60s
for the actual response? We are investigating some timeout inconsistency between android
and iOS
platforms regarding api timeouts.jw
03/23/2021, 5:07 PMjw
03/23/2021, 5:08 PMalex.tavella
03/23/2021, 6:54 PMcallTimeout
, which is a change we want to make. I’m trying to check if its possible to calculate an upper limit for our current requests latency.jessewilson
03/24/2021, 12:21 AMconnectTimeout + (writeTimeout * request byte count) + (readTimeout * response byte count)
jessewilson
03/24/2021, 12:21 AMPaul Woitaschek
03/25/2021, 6:27 AMLilly
03/25/2021, 11:12 AM