Skip to content

RestAngular Timeout not working. still return and save data after timeout #949

@EvenOng

Description

@EvenOng

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){
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions