【问题标题】:Message: Error: NameResolutionFailure when using the getstream SDK消息:错误:使用 getstream SDK 时出现 NameResolutionFailure
【发布时间】:2019-11-14 20:39:24
【问题描述】:

在 Xamarin.iOS 应用上调用 getstream sdk 时出现异常“消息:错误: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);    

有没有办法解决这个问题?请帮忙

【问题讨论】:

    标签: getstream-io


    【解决方案1】:

    错误提示操作系统无法正确解析 DNS。最常见的原因是糟糕的 ISP DNS 服务器。

    最简单的解决方案是选择 Google 或 Cloudflare DNS 并配置您的网络(即您的路由器 DHCP 设置或类似设置)以使用它们。

    谷歌 DNS:8.8.8.88.8.4.4

    Cloudflare DNS:1.1.1.1

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-17
      • 2013-02-14
      相关资源
      最近更新 更多