Hi everyone, I’m using ktor and dynamodb for my b...
# server
p
Hi everyone, I’m using ktor and dynamodb for my backend project. I’m trying to fetch data from db using the below piece of code:
Copy code
getDynamoDbClient().use { ddb ->
                return@use ddb.getItem(dbRequest)
            }
Upon running this, I’m getting
java.lang.IncompatibleClassChangeError: Found interface kotlin.time.TimeMark, but class was expected
error. I’m doing it as it’s shown in https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/kotlin/services/dynamodb/src/main/kotlin/com/kotlin/dynamodb/GetItem.kt. Am I doing anything wrong? Kotlin version: 1.7.0, Ktor version: 2.0.2, aws version: 0.16.0 TIA
👀 2
i
I think it's a breaking change. Saw something similar in kotest when I tried to move to Kotlin 1.7.
p
@itzik kasovitch Yeah, just saw that issue. Anyway, I’ve created an issue for aws here
👍 1
l
The release notes for 1.7.0 note that time related classes are now inline classes to improve performance. It is interesting that the error notes it as an interface, however.
a
I can’t believe that the time apis are still marked as @ExperimentalTime (since 1.3). This needs to become stable at some point.
135 Views