This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$cancelRequest() on completed resource request throws error #16016
Closed
Description
I'm submitting a ...
- bug report
- feature request
- other (Please do not submit support requests here (see above))
Current behavior:
Canceling a completed Angular Resource request using .$cancelRequest() results in
angular.js:123 TypeError: Cannot read property 'resolve' of null
at Array.cancelRequest (https://localhost:8443/modules/mangoUI/web/vendor/angular-resource/angular-resource.js:831:30)
Expected / new behavior:
The function call should do nothing, as per docs
Calling $cancelRequest() for a non-cancellable or an already completed/cancelled request will have no effect.
Minimal reproduction of the problem with instructions:
Angular version: 1.6.4
Browser: [all]
Anything else:
Looks like this bug was introduced in 71cf28c