danwrong/restler — Issue #74: Restler 2.x hangs on 403
Author: pyrat
Created: 2012-03-06 09:19:51+00:00
State: open

Hi,

If I try a GET request on a url which returns a 403 Forbidden, Restler hangs. All was ok with 0.2.x

Is this due to a change in API? eg.

testUrl = function(url, callback) {
return restler.get(url).on('success', function(data, resp) {
return callback(null, data);
}).on('error', function(data, resp) {
return callback(true, data);
});
};

With 0.2.x the error event is successfully emitted but on 2.x it isnt. Is this due to an API change or is it a bug?