aliyun / aliyun-log-android-sdk

MIT License
180 stars 40 forks source link

当提交的LogGroup 的content 为空时,服务器会返回 400错误 ,并且不会回调onFailure #14

Closed yiyayiya closed 4 years ago

yiyayiya commented 6 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"}

lygttpod commented 5 years ago

所遇情况同上

备注:bug虽小,造成的后果却很严重,望重视,尽早修复,谢谢!

image

image

1019272778 commented 5 years ago

fixed。可以参考最新的master分支代码