帮忙看下阿里云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能否优化下?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。