Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoraemonStatisticsUtil 模块网络请求报错 #43

Closed
EyreFree opened this issue Feb 12, 2019 · 3 comments
Closed

DoraemonStatisticsUtil 模块网络请求报错 #43

EyreFree opened this issue Feb 12, 2019 · 3 comments
Labels
todo 接下来要做的事情

Comments

@EyreFree
Copy link
Contributor

1. 期望的表现和实际的表现。(如有)

  1. 建议移除 DoraemonStatisticsUtil,有使用顾虑;
  2. 一定要采集数据的话,上个 HTTPS 吧,炸一堆 Log 到 Console 里挺尴尬的。

2. 问题重现的步骤。(如有)

工程中引入 DoraemonKit 库后,Xcode 中 Console 报错统计接口 uploadAppData 接口由于 ATP 所以请求失败:

3. Android 还是 iOS?系统版本是多少?手机品牌是什么?(如有)

iOS / 任意型号

4. 其他的错误信息和堆栈信息如果有也可以一并提供出来。(如有)

Task <500A5CFF-A68B-4855-8A17-01BD2B28F7A1>.<1> load failed with error Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSErrorFailingURLStringKey=http://doraemon.xiaojukeji.com/uploadAppData, NSErrorFailingURLKey=http://doraemon.xiaojukeji.com/uploadAppData, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <500A5CFF-A68B-4855-8A17-01BD2B28F7A1>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <500A5CFF-A68B-4855-8A17-01BD2B28F7A1>.<1>, NSUnderlyingError=0x282e1b270 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}} [-1022]
@yixiangboy
Copy link
Contributor

好的,我们会尽快上https的版本的。这个接口只统计开源产品使用量,请大家放心,我们不用于任何恶意行为。

@yixiangboy yixiangboy added the todo 接下来要做的事情 label Feb 13, 2019
@yixiangboy
Copy link
Contributor

1.1.5版本已经改成https请求

@EyreFree
Copy link
Contributor Author

@yixiangboy

感谢,🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo 接下来要做的事情
Projects
None yet
Development

No branches or pull requests

2 participants