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.

$httpBackend should report stack trace of unexpected requests #12231

Open
@ttencate

Description

@ttencate

When $httpBackend says Unexpected request: GET ..., the printed stack trace points to the $httpBackend.flush() call, not to the place where the actual request was triggered from. This makes such errors hard to debug, especially if the request is made in a place with many callers.

We could record the stack trace when any of the request methods on $httpRequest are called, and show that stack trace in addition to the Unexpected request: ... message.

Related but different: #10596

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions