Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox console throws "no element found" on HTTP 204 response

Everything actually works, but I can't get rid of this error in the firefox console:

no element found

I am sending an HTTP request to my api:

$http({
    url: API_LOCATION + 'expenses/' + obj.expense.id + '/', 
    method: "DELETE",
}).then(function(response){
    if(response.status === 204) {
        var params = $location.search();
        params['alert-success'] = ALERTS.EXPENSE_DELETED;
        $location.search(params);
    }
    $route.reload();
});

and my (django rest framework) api returns an HTTP_204_NO_CONTENT status

like image 561
Skatch Avatar asked Nov 14 '15 14:11

Skatch


1 Answers

This is a Firefox bug which has been recently reopened recently resolved: https://bugzilla.mozilla.org/show_bug.cgi?id=884693

like image 77
musically_ut Avatar answered Nov 08 '22 06:11

musically_ut