question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Couldn't deserialize body to User

See original GitHub issue

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 à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 à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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
bvicenzocommented, Jan 11, 2021

It has worked, man. Very thanks 😄

0reactions
cxychancommented, Jun 11, 2021

hello, I am using groovy instead of kotlin and also face the same error “Couldn’t deserialize body to User”. Does anyone have any idea what is happening?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Couldn't deserialize body to User · Issue #1139 - GitHub
Hello, I'm new with Kotlin and Javalin, and I'm trying to follow this simple CRUD tutorial. However, I'm having some problems.
Read more >
'Could not deserialize the response body stream as services ...
If I use FirstOrDefaultAsync API to show data in a Blazor form, but if I use Where then it shows the above error....
Read more >
Not sure why I can't deserialize an HTTP JSON object response
By passing List<String>. class to the JSON. deserialize function, you're telling it to look for a list. A list in JSON should start...
Read more >
c# - Cannot deserialize the current JSON object, why does this ...
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is...
Read more >
"Could not deserialize service response" error when ...
The issue is caused if the environment is not properly configured to host Sitefinity projects. ... The issue is caused by an incorrect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found