aliyun / aliyun-log-android-sdk

MIT License
180 stars 40 forks source link

发送后回调一直输出错误信息 #79

Closed kennir closed 2 years ago

kennir commented 2 years ago
W/LogProducerHttpTool(15429): exception: failed to connect to localhost/127.0.0.1 (port 443): connect failed: ECONNREFUSED (Connection refused)
D/aliyun-sls-android(15429): resultCode: 4 reqId: , errorMessage: n/a, logBytes: 349, compressBytes: 337
I/aliyun_log_c_sdk(15429): [WARN] [/Users/chao/Downloads/sls/aliyun-log-c-sdk1/projects/android/jni/log_producer_sender.c:325] send network error, project : flutter-apps, logstore : eshop-flutter-v1, buffer len : 337, raw len : 349, code : -1, error msg : n/a

sls的后台看有部分日志是上传上来了, resultCode: 4 代表的是什么含义? 还是为什么会始终输出本地连接错误,是因为httpdns的原因创建了一个本地的web server代理吗?

cnbleu commented 2 years ago

你好,resultCoce: 4表示LOG_PRODUCER_SEND_NETWORK_ERROR,即:网络错误。从你贴的日志exception: failed to connect to localhost/127.0.0.1 (port 443): connect failed 也能看到同样的错误原因。可能是httpdns的原因导致,需要您本地排查下。