Date
1 - 2 of 2
Dealing with offline APIs
Frank Tellefsen <tellefsenfrank@...>
Hi, I'm using REST Client to fetch some stuff from this API (main_controller.rb @ http://runnable.com/U-QJCIFvY2RGWL9B/pretty-json-keys). However, if the API goes offline, my whole app will time out. Is there a way to prevent that? I'd hate to think I should have gone with jQuery from the start. Thanks! Frank
|
|
Frank Tellefsen <tellefsenfrank@...>
Apologies for not researching the matter more thoroughly before resorting to this list. Thanks!I didn't realize REST Client had a `timeout` function, so I added an exception for `RestClient::RequestTimeout` and now it's all good.
|
|