最新消息:20210917 已从crifan.com换到crifan.org

[已解决]swift中http访问网络出错: A server with the specified hostname could not be found

Swift crifan 4260浏览 0评论

调试期间,用SwiftHTTP访问网络,结果出错:

url=http://jiandao.im:8080/user?phone=xxx with params=nil response error= A server with the specified hostname could not be found

swift http  A server with the specified hostname could not be found

ios – A server with the specified hostname could not be found – Stack Overflow

ios – A server with the specified hostname could not be found in AFNetworking – Stack Overflow

感觉还是当前网络的问题

是当前网络不稳定?

“A server with the specified hostname could not be found” – Bugs and Issues – Inoreader Forum

果然是:

重启app,多试试几次,后来就好了。

转载请注明:在路上 » [已解决]swift中http访问网络出错: A server with the specified hostname could not be found

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
94 queries in 0.180 seconds, using 23.34MB memory