iOS 应用调用后端接口时,偶尔会出现这个异常,出现频率很低,也很难复现,搜索到 github Moya 上有两个 issue,最后都没说明白是什么问题和怎么解决。
https://github.com/Moya/Moya/issues/1533https://github.com/Alamofire/Alamofire/pull/2887iOS 端用的 Http 库是 Alamofire 上面再封装了一层 Moya
github "Moya/Moya" "14.0.0-beta.5"
github "Alamofire/Alamofire" "5.0.0-rc.3"
后端接口是 Springboot 1.5.9
PS:只在 iOS 侧偶尔出现,Android 端一直正常。