restangular icon indicating copy to clipboard operation
restangular copied to clipboard

First call is aborted

Open ackimwilliams opened this issue 12 years ago • 2 comments

I am not sure if this is related to my config, but I noticed that my very first Restangular call is ABORTED or CANCELLED.

My solution to this problem is forcing Restangular.all('entity').getList(); which I expect to get cancel, then I use Restangular to handle subsequent api calls. Any suggestion on how to debug this issue?

ackimwilliams avatar Oct 26 '14 18:10 ackimwilliams

Followup, the issue I mentioned above is because I set a timeout in the config thinking that the timeout is in seconds, it is infact in milliseconds.

RestangularProvider.setDefaultHttpFields({ timeout: 3600 });

We should probably mentioned the unit of timeout in the docs.

ackimwilliams avatar Oct 26 '14 18:10 ackimwilliams

I don't think that this is going to be an issue as long as timeout uses milliseconds in every case (haven't heard of any implementations that use a different unit) :)

grabbou avatar Feb 17 '15 17:02 grabbou