Hi,
As title, my api still return data or save data into database when it already timeout.
I try 2 method also fail with 1 ms.
1st method (apply to all):
//inspect get got data too
RestangularProvider.setBaseUrl(Url);
RestangularProvider.setDefaultHttpFields({timeout: 1});
2rd method (apply one to one)
RestangularProvider.setBaseUrl(Url);
var apiProduct = Restangular.one('product', 'hardware').one('save');
//put ~ still save after timeout with error return
apiProduct.withHttpConfig({timeout: 1}).customPUT(dataSendToApiJson).then(function(response){
}
//get ~ can get data after timeout
apiProduct.withHttpConfig({timeout: 1}) .get().then(function(response){
}