Javalin: Couldn't deserialize body to User

Created on 6 Jan 2021  路  3Comments  路  Source: tipsy/javalin

Hello,
I'm new with Kotlin and Javalin, and I'm trying to follow this simple CRUD tutorial.

However, I'm having some problems.

In the first get, I've faced this error message...

Captura de Tela 2021-01-06 a虁s 16 31 54

I've solved that problem adding the following line to build.gradle.ks dependencies block:

    implementation("com.fasterxml.jackson.core:jackson-databind:2.8.9")

However, the problem of the title is happening when I try to create a user in the post endpoint.

Captura de Tela 2021-01-06 a虁s 17 21 09

Does anyone have any idea what could be happening?

I've added the code I've used in that repository:
https://github.com/bvicenzo/javalin_tutotial_crud

QUESTION

Most helpful comment

It has worked, man.
Very thanks 馃槃

All 3 comments

It has worked, man.
Very thanks 馃槃

hello sir I have the same problem . I try to add the link but still cant deserialize body .Also do you Know a good library to use to connect to mogoDb . Thanks

Was this page helpful?
0 / 5 - 0 ratings