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
Description
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