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

Error in deserialization of the error object #145

Open
mainormoya opened this issue Feb 12, 2024 · 0 comments
Open

Error in deserialization of the error object #145

mainormoya opened this issue Feb 12, 2024 · 0 comments

Comments

@mainormoya
Copy link

Hello, I am using version 0.0.61 in Maven and the following error returns when I try to deserialize the object. InlineResponse2011

The API response has the following structure:
{
"id": "81021704004",
"submitTimeUtc": "2024-02-12T19:42:59Z",
"status": "SUCCESS",
"registrationInformation": {
"mode": "COMPLETE",
"boardingPackageId": "15583004004"
},
.....

I think it is failing on the date according to the error:

Invalid format: "2024-02-12T19:57:46Z" is malformed at "T19:57:46Z"
at org.joda.time.format.DateTimeFormatter.parseLocalDateTime(DateTimeFormatter.java:900)
at org.joda.time.format.DateTimeFormatter.parseLocalDate(DateTimeFormatter.java:844)
at Invokers.LocalDateTypeAdapter.read(JSON.java:222)
at Invokers.LocalDateTypeAdapter.read(JSON.java:201)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.Gson.fromJson(Gson.java:963)
at com.google.gson.Gson.fromJson(Gson.java:928)
at com.google.gson.Gson.fromJson(Gson.java:877)
at Invokers.JSON.deserialize(JSON.java:103)
at Invokers.ApiClient.deserialize(ApiClient.java:1059)
at Invokers.ApiClient.handleResponse(ApiClient.java:1283)
at Invokers.ApiClient.execute(ApiClient.java:1203)
at Api.MerchantBoardingApi.postRegistrationWithHttpInfo(MerchantBoardingApi.java:305)
at Api.MerchantBoardingApi.postRegistration(MerchantBoardingApi.java:289)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant