Help to send data with this error #90
Unanswered
joseluisgs
asked this question in
Q&A
Replies: 1 comment
-
OK, I solved with private val ktorfit by lazy {
// Podemos meterle flow directamente!!!
// ktorfit.responseConverter(FlowResponseConverter())
Ktorfit.Builder()
.httpClient {
install(ContentNegotiation) {
json(Json { isLenient = true; ignoreUnknownKeys = true })
}
install(DefaultRequest) {
header(HttpHeaders.ContentType, ContentType.Application.Json)
}
}
.baseUrl(API_URL)
.build()
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I have the following Client
I have the following interface
when I make val res = client.create(entity)
I have the following exception
I don't Know why, Because gets work fine. My user model is
Could you help me?
I try to solve using @headers("Content-Type: application/json"), but I have installed the context serializer pluging,
Thank you
Beta Was this translation helpful? Give feedback.
All reactions