我正在創建一個在Heroku上使用Rails API後端的iOS應用程序。定期(每20個API調用一個),不能找到heroku。將返回以下NSError:Heroku零星返回「主機名」找不到
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上也遇到過這種情況。 (而我的測功機沒有睡覺) – lms
這不是(完全)Heroku相關,我看到與不同平臺相同的東西。 – jimpic
我們也看到這與Heroku後端和iOS客戶端。 Dynos不會睡覺,請求不會觸及Heroku。 @Michael Guren讓我知道你是否找到了根本原因。 – Fraggle