Skip to content

getList uncaught error #1227

@jan-swiecki

Description

@jan-swiecki
Restangular.all('/not_a_list').getList().then(function(){
  console.log("success");
}, function(error){
  console.log("error");
});

When /not_a_list returns object instead of array I get error in console (expected) but error handler is not executed.

Furthermore when I add .finally(...) it is not executed as well.

Is this expected behaviour?

Tested on:
Angular 1.4.5
Restangular 1.5.1
Chrome, Windows 10

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