Closed Bug 1177208 Opened 9 years ago Closed 7 years ago

Cannot cancel all jobs with error "Failed to cancel all jobs:undefined"

Categories

(Tree Management :: Treeherder, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: ehsan.akhgari, Unassigned)

Details

I got this when trying to cancel https://treeherder.mozilla.org/#/jobs?repo=try&revision=429d0094d340. I had retriggered a bunch of tests, so that may be related.
This message is being generated here: https://github.com/mozilla/treeherder/blob/e8ebf10689e33519cb6a8980dc4ffd4ce30651b8/ui/js/models/error.js#L38 Which is being called from here, presumably after the http post to the build api fails: https://github.com/mozilla/treeherder/blob/e8ebf10689e33519cb6a8980dc4ffd4ce30651b8/ui/js/controllers/jobs.js#L202 https://github.com/mozilla/treeherder/blob/e8ebf10689e33519cb6a8980dc4ffd4ce30651b8/ui/js/models/resultset.js#L193 It's difficult to know exactly what's happening here, aside from the fact that we don't have enough data to generate a good error message. Reading the angular docs, it looks like we should be calling the special $http promise .error callback, which gives us a bit of extra information: https://docs.angularjs.org/api/ng/service/$http If I were going to work on this bug, that'd be where I'd start.
Priority: -- → P2
Component: Treeherder → Treeherder: Job Triggering & Cancellation
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
This area of the code has been changed a few times since, including improving the error messages. If this happens again, please reopen :-)
Component: Treeherder: Job Triggering & Cancellation → TreeHerder
You need to log in before you can comment on or make changes to this bug.