Closed yiyayiya closed 4 years ago
当提交的LogGroup 的content 为空时,服务器会返回 400错误 :{"errorCode":"PostBodyInvalid","errorMessage":"wrong data type"} 此时logClient.asyncPostLog 不会回调onFailure,原因是 RequestTask 201到213行那段代码有Exception 没有catch

2018-08-02 10:12:45.619 27035-27193/com.aliyun.sls D/OSS-Android-SDK: response:--------------------- response code : 400 for url : http://biaotest.cn-shenzhen.log.aliyuncs.com/logstores/demo/shards/lb response body : {"errorCode":"PostBodyInvalid","errorMessage":"wrong data type"}
fixed。可以参考最新的master分支代码
当提交的LogGroup 的content 为空时,服务器会返回 400错误 :{"errorCode":"PostBodyInvalid","errorMessage":"wrong data type"} 此时logClient.asyncPostLog 不会回调onFailure,原因是 RequestTask 201到213行那段代码有Exception 没有catch


2018-08-02 10:12:45.619 27035-27193/com.aliyun.sls D/OSS-Android-SDK: response:--------------------- response code : 400 for url : http://biaotest.cn-shenzhen.log.aliyuncs.com/logstores/demo/shards/lb response body : {"errorCode":"PostBodyInvalid","errorMessage":"wrong data type"}