V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xiuc001
V2EX  ›  Swift

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

  •  
  •   xiuc001 · 2021-05-18 11:08:10 +08:00 · 1491 次点击
    这是一个创建于 1284 天前的主题,其中的信息可能已经有所发展或是发生改变。

    下面是异常日志: 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})

    哪位大神帮忙看下问题

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5327 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:37 · PVG 15:37 · LAX 23:37 · JFK 02:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.