Error in deserialization of the error object
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Tái hiện response bằng payload được cung cấp và bắt đầu từ Invokers/JSON.java, đặc biệt là LocalDateTypeAdapter.read quanh dòng 222. Theo dõi cách giá trị submitTimeUtc trong API response được ánh xạ trong quá trình ApiClient.deserialize. Được xem là hoàn tất khi response được báo cáo có thể được deserialize mà không gặp date-format exception được hiển thị và việc xử lý ngày tháng như mong đợi đã được xác nhận.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)
- Ngôn ngữ chính
- Java
- Star
- 29
- Fork
- 50
- Merge trung bình
- 28 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CyberSource/cybersource-rest-client-java
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
CyberSource/cybersource-rest-client-java#241 · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 58/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
CyberSource/cybersource-rest-client-java#235 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Tất cả issue của CyberSource/cybersource-rest-client-java
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
inu-appcenter/memorIN-backend#288 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
frontend maui-pilot pilot-ask question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Đang mởarea/plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kestra-io/plugin-kestra#190 ·