Eduardo Ruesta
11/20/2024, 10:16 PMRequest timeout has expired [url=<https://consultas.ourclub.io/sanluis/personas?documento=35073072>, request_timeout=40000 ms])
Only happens sometimes, maybe when i do a clean/fresh installation. And i have to retry the call again to work. Max 3 tries and then works. This is my configuration:
single<HttpClient> {
HttpClient {
install(ContentNegotiation) {
json(json = Json { ignoreUnknownKeys = true }, contentType = ContentType.Any)
}
install(HttpTimeout) {
requestTimeoutMillis = 40000
connectTimeoutMillis = 40000
socketTimeoutMillis = 40000
}
}
}
The issue is same for Android and iOSEduardo Ruesta
11/20/2024, 10:17 PMsuspend fun getPersonInformation(document: String, apiKey: String): Person? {
val requestBody = RequestBody(
csv = false,
campos = listOf("apellido", "nombre", "nrosocio", "email", "documento", "personaid")
)
return <http://client.post|client.post>("<https://consultas.ourclub.io/sanluis/personas?documento=$document>") {
header("X-Api-Key", apiKey)
contentType(ContentType.Application.Json)
setBody(requestBody)
}.body()
}
Aleksei Tirman [JB]
11/21/2024, 8:35 AMEduardo Ruesta
11/21/2024, 12:02 PMEduardo Ruesta
11/22/2024, 5:17 PMAleksei Tirman [JB]
11/25/2024, 7:59 AM