Error in deserialization of the error object
还没有人认领这个 Issue。
评估
调研方向
使用所示 payload 重现该响应,并从 Invokers/JSON.java 开始,重点查看第 222 行附近的 LocalDateTypeAdapter.read。跟踪 API 响应的 submitTimeUtc 值在 ApiClient.deserialize 期间是如何映射的。完成的标准是:报告中的响应可以在不出现所示日期格式异常的情况下完成反序列化,并确认预期的日期处理方式。
由索引模型根据 Issue 内容生成。
描述
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)
- 主要语言
- Java
- 星标
- 29
- 派生
- 50
- 平均合并
- 1 小时 30 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CyberSource/cybersource-rest-client-java 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
CyberSource/cybersource-rest-client-java#241 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 2/5 1-3 小时 新手友好度 58/100
-
难度 3/5 1-2 天 新手友好度 42/100
CyberSource/cybersource-rest-client-java#235 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
查看 CyberSource/cybersource-rest-client-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
apache/rocketmq-dashboard#6716 ·
维护者通常 3 天内回复
-
DefaultRedisList.get(int) does not reject an index equal to the list size可能已有人在做 @ryujungkyun 今天认领。 未关闭status: waiting-for-triage
难度 1/5 1 小时以内 新手友好度 68/100
spring-projects/spring-data-redis#3471 ·
维护者通常 5 天内回复
-
:maddi-inspection-kotlin:test runs out of heap in a full maddi test run; exit 1 with no failing test未关闭build/ci front-end:kotlin
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
uwolfer/gerrit-intellij-plugin#768 ·
维护者通常 1 天内回复