Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Documenten API client Response uses LocalDateTime, cannot handle dates with timezone info #1218

Open
haiko-ritense opened this issue Feb 16, 2024 · 0 comments

Comments

@haiko-ritense
Copy link
Contributor

haiko-ritense commented Feb 16, 2024

Error for the field 'beginRegistratie' in com.ritense.documentenapi.client.CreateDocumentResult upon deserialising:

Caused by: org.springframework.core.codec.DecodingException: JSON decoding error: Cannot deserialize value of type `java.time.LocalDateTime` from String "2024-02-15T14:39:54.746+01:00": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text '2024-02-15T14:39:54.746+01:00' could not be parsed, unparsed text found at index 23; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String "2024-02-15T14:39:54.746+01:00": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text '2024-02-15T14:39:54.746+01:00' could not be parsed, unparsed text found at index 23
at [Source: (io.netty.buffer.ByteBufInputStream); line: 7, column: 25] (through reference chain: com.ritense.documentenapi.client.CreateDocumentResult["beginRegistratie"])
  at org.springframework.http.codec.json.AbstractJackson2Decoder.processException(AbstractJackson2Decoder.java:242)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant