swift5 使用 Alamofire 获取后端接口数据,报 Getting Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”错误,求指导

2021-05-18 11:08:10 +08:00
 xiuc001

下面是异常日志: 2021-05-17 22:42:36.246287+0800 DT[18707:1574271] [] nw_path_evaluator_create_flow_inner NECP_CLIENT_ACTION_ADD_FLOW 25EABBFD-26CE-44FE-990A-F30EA7AC81BF [2: No such file or directory] 2021-05-17 22:42:36.246471+0800 DT[18707:1574271] [connection] nw_endpoint_flow_setup_channel [C35.1 104.199.192.24:443 in_progress channel-flow (satisfied (Path is satisfied), viable, interface: utun2, ipv4, dns)] failed to request add nexus flow 2021-05-17 22:42:36.247187+0800 DT[18707:1574271] Connection 35: received failure notification 2021-05-17 22:42:36.247392+0800 DT[18707:1574271] Connection 35: failed to connect 1:2, reason -1 2021-05-17 22:42:36.247454+0800 DT[18707:1574271] Connection 35: encountered error(1:2) 2021-05-17 22:42:36.248974+0800 DT[18707:1574271] Task .<31> HTTP load failed, 0/0 bytes (error code: 2 [1:2])

2021-05-17 22:42:36.249775+0800 DT[18707:1574278] Task .<31> finished with error [2] Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<31>, _kCFStreamErrorDomainKey=1, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask .<31>" ), _kCFStreamErrorCodeKey=2}

Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<31>, _kCFStreamErrorDomainKey=1, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask .<31>" ), _kCFStreamErrorCodeKey=2})

哪位大神帮忙看下问题

1491 次点击
所在节点    Swift
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/777628

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX