Im trying to use the GraphQL API and we have the need to deserialize a field that is in String to LocalDateTime and in that case ,we get the below exception
"message" : "Servlet.service() for servlet [dispatcherServlet] in context with path [] threw
exception [Request processing failed; nested exception is GraphQLException{message='null',
status='200', description='Cannot deserialize value of type `java.time.LocalDateTime` from
String \"2020-01-30T13:42:34.400\": Failed to deserialize java.time.LocalDateTime:
(java.time.format.DateTimeParseException) Text '2020-01-30T13:42:34.400' could not be
parsed at index 10\n at [Source: UNKNOWN; line: -1, column: -1] (through reference chain:
io.aexp.nodes.graphql.Wrapper[\"data\"]-
>com.ing.diba.scalable.domain.inbound.PortFolioResponse[\"realTimeValuation\"]-
>com.ing.diba.scalable.domain.inbound.RealTimeValuationResponse[\"dateTime\"])',
errors=null}]
@chemdrew @realityforge Hi,
Im trying to use the GraphQL API and we have the need to deserialize a field that is in String to LocalDateTime and in that case ,we get the below exception
The code to invoke is
On debugging we found that the exception occurs from the deserialize method of LocalDateTimeDeserializer class of jacksonjar at highlighted line
But if we parse it locally we don't get the exception
Can you let me know what is causing this issue? and so its possible to resolve it in our application