Skip to content
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
@jazdw

Description

@jazdw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions