Re: Dealing with offline APIs

Frank Tellefsen <tellefsenfrank@...>

Apologies for not researching the matter more thoroughly before resorting to this list.

I didn't realize REST Client had a `timeout` function, so I added an exception for `RestClient::RequestTimeout` and now it's all good.


2014-08-13 10:39 GMT+02:00 Frank Tellefsen <tellefsenfrank@...>:


I'm using REST Client to fetch some stuff from this API (main_controller.rb @ 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.



Join to automatically receive all group messages.