开发者社区> 问答> 正文

帮忙看下阿里云OpenAPI机器翻译的java-sdk,报错这个后面sdk能否优化下?

帮忙看下阿里云OpenAPI
机器翻译的java-sdk,报错
com.aliyun.tea.TeaException
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:209)
at com.aliyun.tea.TeaModel.toModel(TeaModel.java:180)
at com.aliyun.alimt20181012.Client.getTranslateImageBatchResultWithOptions(Client.java:901)
at com.aliyun.sample.Sample.main(Sample.java:33)
Caused by: com.aliyun.tea.TeaException
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:209)
at com.aliyun.tea.TeaModel.toModel(TeaModel.java:180)
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:196)
... 3 more
Caused by: com.aliyun.tea.TeaException
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:209)
at com.aliyun.tea.TeaModel.toModel(TeaModel.java:180)
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:196)
... 5 more
Caused by: com.aliyun.tea.TeaException
at com.aliyun.tea.TeaModel.buildObject(TeaModel.java:150)
at com.aliyun.tea.TeaModel.buildObject(TeaModel.java:138)
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:203)
... 7 more
Caused by: com.aliyun.tea.TeaException
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:209)
at com.aliyun.tea.TeaModel.toModel(TeaModel.java:180)
at com.aliyun.tea.TeaModel.buildObject(TeaModel.java:148)
... 9 more
Caused by: java.lang.NumberFormatException
at java.math.BigDecimal.(BigDecimal.java:550)
at java.math.BigDecimal.(BigDecimal.java:383)
at java.math.BigDecimal.(BigDecimal.java:806)
at com.aliyun.tea.TeaModel.confirmType(TeaModel.java:391)
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:205)
... 11 more

正常情况下Code字段都是数字,是没问题的。但是偶尔Code出现了Code -> isp.top-remote-connection-timeout,然后就崩溃了。这个后面sdk能否优化下?

展开
收起
真的很搞笑 2024-06-29 19:48:04 51 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
跨平台的云服务SDK需要什么 立即下载
一个跨平台的云服务SDK需要什么 立即下载
最大化阿里云OpenAPI能力的方法和实践 立即下载