在Xamarin.iOS应用上调用getstream sdk时,我得到了异常"Message: Error: NameResolutionFailure“。
这并不总是发生,但它经常发生。
Please check this link for the detail error message of the exception
下面是发生异常的代码
var userFeed = client.Feed("timeline", "id");
var activities = await userFeed.GetActivities(0, 15); 有什么办法可以解决这个问题吗?请帮帮忙
发布于 2019-11-16 03:32:35
该错误表示操作系统无法正确解析DNS。最常见的原因是ISP DNS服务器故障。
最简单的解决方案是选择Google或Cloudflare DNS并配置您的网络(即您的路由器DHCP设置或类似设置)才能使用它们。
谷歌域名:8.8.8.8和8.8.4.4
Cloudflare DNS:1.1.1.1
https://stackoverflow.com/questions/58866146
复制相似问题