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.

[Bug] ServerWebInputException: 400 BAD_REQUEST "Failed to read HTTP message"; nested exception is org.springframework.core.codec...

See original GitHub issue

Sentry Issue: APPSMITH-Z7

MismatchedInputException: Cannot deserialize instance of `com.appsmith.external.models.PaginationField` out of START_OBJECT token
 at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 1024] (through reference chain: com.appsmith.external.dtos.ExecuteActionDTO["paginationField"])
    at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
    at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1442)
    at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1216)
    at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1126)
    at com.fasterxml.jackson.databind.deser.std.EnumDeserializer._deserializeOther(EnumDeserializer.java:267)
...
(37 additional frame(s) were not displayed)

DecodingException: JSON decoding error: Cannot deserialize instance of `com.appsmith.external.models.PaginationField` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `com.appsmith.external.models.PaginationField` out of START_OBJECT token
 at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 1024] (through reference chain: com.appsmith.external.dtos.ExecuteActionDTO["paginationField"])
    at org.springframework.http.codec.json.AbstractJackson2Decoder.processException(AbstractJackson2Decoder.java:181)
    at org.springframework.http.codec.json.AbstractJackson2Decoder.decode(AbstractJackson2Decoder.java:147)
    at org.springframework.http.codec.json.AbstractJackson2Decoder.lambda$decodeToMono$1(AbstractJackson2Decoder.java:133)
    at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:118)
    at reactor.core.publisher.FluxContextStart$ContextStartSubscriber.onNext(FluxContextStart.java:103)
...
(27 additional frame(s) were not displayed)

ServerWebInputException: 400 BAD_REQUEST "Failed to read HTTP message"; nested exception is org.springframework.core.codec.DecodingException: JSON decoding error: Cannot deserialize instance of `com.appsmith.external.models.PaginationField` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `com.appsmith.external.models.PaginationField` out of START_OBJECT token
 at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 1024] (through reference chain: com.appsmith.external.dtos.ExecuteActionDTO["paginationField"])
    at org.springframework.web.reactive.result.method.annotation.AbstractMessageReaderArgumentResolver.handleReadError(AbstractMessageReaderArgumentResolver.java:224)
    at org.springframework.web.reactive.result.method.annotation.AbstractMessageReaderArgumentResolver.lambda$readBody$4(AbstractMessageReaderArgumentResolver.java:192)
    at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:88)
    at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:122)
    at reactor.core.publisher.FluxContextStart$ContextStartSubscriber.onNext(FluxContextStart.java:103)
...
(27 additional frame(s) were not displayed)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Nikhil-Nandagopalcommented, Aug 2, 2021

@nidhi-nair can we atleast get the server to throw sentry exceptions with the correct user id so we can look into smart look / logs to try and reproduce the issue?

0reactions
nidhi-naircommented, Aug 30, 2021

Closing this in favour of #6376. The extra logging should help with diagnosis in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SpringBoot :Failed to read HTTP message - Stack Overflow
Your request body is missing so you are getting BAD REQUEST Error. in request header u have set "Content-type" as application/json.
Read more >
400 BAD_REQUEST "Failed to read HTTP message"; nested ...
ServerWebInputException : 400 BAD_REQUEST "Failed to read HTTP message"; nested exception is org.springframework.core.codec... #13250.
Read more >
Failed to read HTTP message: org.springframework.http ...
springframework.http.converter.HttpMessageNotReadableException. error400Badrequest. Every api developer must be familiar with this error.We ...
Read more >
spring - ControllerAdvice for Kotlin - Stack Overflow
I want to create ControllerAdvice for validation exception and I'm using Webflux, Kotlin and jackson-module-kotlin. I've tried to do it with traditional ...
Read more >
Uses of Class org.springframework.core ...
Exception hierarchy enabling sophisticated error handling independent of the ... Subclasses of NestedRuntimeException in org.springframework.aop.framework ...
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