Error: $log is not a function and Error: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

RESOLVED FIXED

Status

Tree Management
Treeherder
P1
normal
RESOLVED FIXED
3 years ago
2 years ago

People

(Reporter: Tomcat, Assigned: jeads)

Tracking

Details

(Reporter)

Description

3 years ago
Was trying to do tree sheriff duty when treeherder told me that classification failed with 

GET https://treeherder.mozilla.org/api/project/mozilla-inbound/note/ [0ms]
GET https://treeherder.mozilla.org/api/project/mozilla-inbound/bug-job-map/ [0ms]
GET https://treeherder.mozilla.org/ui/#/jobs [HTTP/1.1 304 Not Modified 1375ms]
"Error: $log is not a function
saveClassification/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:16:23824
$http/promise.error/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:1637
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/createInternalRejectedPromise/<.then/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:28153
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4393
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:2247
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4818
done@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:2339
completeRequest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:6224
createHttpBackend/</xhr.onreadystatechange@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:7168
" index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7

"Error: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
fromJson@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:5:4648
resultSetResponseTransformer@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:16:26569
transformData@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:6:30036
transformResponse@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:6:31241
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/createInternalRejectedPromise/<.then/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:28153
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4393
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:2247
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4818
done@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:2339
completeRequest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:6224
createHttpBackend/</xhr.onreadystatechange@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:7168
" index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7

"Error: $log is not a function
saveClassification/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:16:23824
$http/promise.error/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:1637
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/createInternalRejectedPromise/<.then/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:28153
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4393
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:2247
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4818
done@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:2339
completeRequest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:6224
createHttpBackend/</xhr.onreadystatechange@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:7168
" index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7

"Error: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
fromJson@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:5:4648
resultSetResponseTransformer@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:16:26569
transformData@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:6:30036
transformResponse@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:6:31241
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/createInternalRejectedPromise/<.then/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:28153
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4393
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:2247
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4818
done@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:2339
completeRequest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:6224
createHttpBackend/</xhr.onreadystatechange@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:7168
" index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7

"Error: $log is not a function
saveClassification/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:16:23824
$http/promise.error/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:1637
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/createInternalRejectedPromise/<.then/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:28153
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4393
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:2247
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4818
done@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:2339
completeRequest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:6224
createHttpBackend/</xhr.onreadystatechange@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:7168
" index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7

"Error: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
fromJson@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:5:4648
resultSetResponseTransformer@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:16:26569
transformData@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:6:30036
transformResponse@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:6:31241
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/createInternalRejectedPromise/<.then/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:28153
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4393
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:2247
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4818
done@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:2339
completeRequest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:6224
createHttpBackend/</xhr.onreadystatechange@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:7168
"Error: $log is not a function
saveClassification/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:16:23824
$http/promise.error/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:1637
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/createInternalRejectedPromise/<.then/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:28153
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4393
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:2247
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4818
done@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:2339
completeRequest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:6224
createHttpBackend/</xhr.onreadystatechange@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:7168
"

"Error: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
fromJson@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:5:4648
resultSetResponseTransformer@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:16:26569
transformData@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:6:30036
transformResponse@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:6:31241
qFactory/defer/deferred.promise.then/wrappedErrback@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:26621
qFactory/createInternalRejectedPromise/<.then/<@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:28153
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4393
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:2247
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:8:4818
done@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:2339
completeRequest@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:6224
createHttpBackend/</xhr.onreadystatechange@https://treeherder.mozilla.org/ui/js/index.min-9ff94a6e8cf266d8643e48130fee89d1.js:7:7168
"
(Reporter)

Comment 1

3 years ago
Steps to reproduce:

-> Have a bustage like https://treeherder.mozilla.org/ui/#/jobs?repo=mozilla-inbound&revision=9dc808ef69a4
and a backout like https://treeherder.mozilla.org/ui/#/jobs?repo=mozilla-inbound&revision=028a7ba5a4ce

now i star/classify the failed/red builds with "fixed by commit" and enter 028a7ba5a4ce as cset 

-> Error message like above but classification is made in treeherder

Updated

3 years ago
Blocks: 1059400
OS: Mac OS X → All
Priority: -- → P1
Hardware: x86 → All

Comment 2

3 years ago
I'm getting this with "intermittent-failure" classifications too.

Comment 3

3 years ago
Commit pushed to master at https://github.com/mozilla/treeherder-ui

https://github.com/mozilla/treeherder-ui/commit/6dc27e4fee5ce61f316cab5bf61fb1a8d816834f
Bug 1074657 - Changed  to .debug()

Updated

3 years ago
Assignee: nobody → jeads
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED

Comment 4

2 years ago
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/766f8d3b177d26fcc44158dcc379e7d9a2ab67b2
Bug 1074657 - Changed  to .debug()
You need to log in before you can comment on or make changes to this bug.