【发布时间】:2013-07-15 12:49:02
【问题描述】:
我正在创建一个在 Heroku 上使用 Rails API 后端的 iOS 应用。定期(每 20 个 API 调用一次),找不到 heroku。返回以下 NSError:
Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x755ce00 {NSErrorFailingURLStringKey=https://xxx.herokuapp.com/api/v1/matchups, NSErrorFailingURLKey=https://xxx.herokuapp.com/api/v1/matchups, NSLocalizedDescription=A server with the specified hostname could not be found., NSUnderlyingError=0x71ca730 "A server with the specified hostname could not be found."
【问题讨论】:
-
只是想确认我在 Heroku ATM 上也遇到了这种情况。 (而且我的测功机没有睡觉)
-
这不是(完全)与 Heroku 相关的,我在不同的平台上看到了同样的事情。
-
我们也在 Heroku 后端和 iOS 客户端中看到了这一点。 Dynos 没有睡觉,请求没有击中 Heroku。 @Michael Guren 如果您找到了根本原因,请告诉我。
标签: ios ruby-on-rails heroku nserror