Tanmay Shree
12/08/2024, 9:29 AMNick
12/11/2024, 5:54 PMkotlinx-serialization
in a Spring app? I haven't found an easy way to return nice, formatted HTTP responses when serialization fails for some reason.
For example, a user sends a request, making a String field null when it should not be null.
Since it should not be null, I want to model it in my domain as a non-nullable String, but if I do, kotlinx-serialization will throw a a serialization exception which is difficult to handle in a way that can programmatically discern the reason why serialization failed and send that back in a user-friendly response.
• Example:
{
"code": "400",
"name": "Bad Request",
"description": "field 'name' cannot be null"
}
I end up having to do something like
data class User(name: String? = null)
and then validate that it's not null after serialization
Wish there was a way to intercept the request before serialization, and check for any null values that should not be null, and return a nice, user-readable error in response.Irfan
12/11/2024, 6:39 PMDaniel Dzhukashev
12/12/2024, 10:09 AMYevhen Bobrov
12/12/2024, 5:27 PMGod'swill Jonathan
12/27/2024, 9:21 AMJunsu Park
01/15/2025, 4:12 AMShankar Gupta
01/18/2025, 1:57 PMHong Phuc
01/23/2025, 10:36 AMKeshav Lingala
01/27/2025, 2:27 PMJúlio Santos
01/29/2025, 1:44 PMClassNotFoundException problem when using REST clients inside Kotlin coroutines after updating the Quarkus version
, has anyone experienced it? If so, how did you solve it?Rob Elliot
02/03/2025, 8:01 PMmuliyul
02/03/2025, 10:20 PMSujan
02/11/2025, 7:06 AMs4nchez
02/13/2025, 1:35 PMJakub Zalas
02/13/2025, 9:26 PMMarcus Ilgner
02/17/2025, 8:39 AMproduce
can lose elements, I wonder whether Flow::produceIn
has the same potential issue? Does anyone know? I want to use select
to pull elements out of a flow but without the chance of losing any... (i.e. if that SelectClause
gets cancelled, it should just receive that element on the next attempt).Chuong
02/24/2025, 1:10 AMktor
rest API server, GET
/api/v1/myroute/CompTIE
matches the route I've created, but GET
/api/v1/myroute/CompTIA
does not.
The route is defined as
fun Route.myRoutes() {
route("/myroute") {
get("/{name}") {
...
}
}
}
Why am I getting this error?audax
02/24/2025, 12:38 PMAdmin_966
02/24/2025, 2:23 PMktor
rest API server, GET
/api/v1/myroute/CompTIE
matches the route I've created, but GET
/api/v1/myroute/CompTIA
does not.
The route is defined as
fun Route.myRoutes() {
route("/myroute") {
get("/{name}") {
...
}
}
}
Why am I getting this error?
Thread in Slack ConversationAnton Yalyshev [JB]
03/05/2025, 2:46 PMDoğaç Eldenk
03/30/2025, 7:17 PMAnton Yalyshev [JB]
04/01/2025, 10:54 AMYusuf Aweda
04/04/2025, 4:22 PMVishal Reddy
04/07/2025, 12:56 PMwakingrufus
04/09/2025, 1:15 PMShadman
04/27/2025, 5:41 PMGradle Flavors
instead of feature based modules for a ktor
backend and I still have the advantages of a real microservice
structure (For example independent deploy)?
I don't think so right?🤔
Can't we somehow trick it? Like giving different port for each flavor
, for both server port and database port?배규민
05/06/2025, 7:45 AMMohammad Zaki
05/11/2025, 9:46 AM