node-build-monitor: body.value undefined
I’m getting the following error for our on-site TFS2015 build server. I get this with the latest release for windows, linux, and directly running from node on a Raspberry Pi.
Printing environment Variables...
PORT = unset (Default: 3000)
NODE_TLS_REJECT_UNAUTHORIZED = 0
node-build-monitor is starting...
11:13:53 AM | Check for builds...
node-build-monitor 0.9.27 is listening on port 3000...
C:\snapshot\node-build-monitor\app\services\Tfs2015.js:27
for (var i = 0; i < body.value.length; i++) {
^
TypeError: Cannot read property 'length' of undefined
at forEachResult (C:\snapshot\node-build-monitor\app\services\Tfs2015.js:27:43)
at C:\snapshot\node-build-monitor\app\services\Tfs2015.js:82:17
at Request._callback (C:\snapshot\node-build-monitor\app\requests.js:23:11)
at Request.init.self.callback (C:\snapshot\node-build-monitor\node_modules\request\request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (C:\snapshot\node-build-monitor\node_modules\request\request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (C:\snapshot\node-build-monitor\node_modules\request\request.js:1091:12)
Have I not configured it correctly? It exits with this error with the several valid log-ins I have tried and for all my projects that I am able to view from a browser at the given url.
{
"monitor": {
"interval": 15000,
"numberOfBuilds": 12,
"latestBuildOnly": false,
"sortOrder": "date",
"debug": true
},
"services": [
{
"name": "Tfs2015",
"configuration": {
"url": "http://<MyBuildServer>:8080/tfs/DefaultCollection/<MyProject>",
"username": "<MyUserName>",
"password": "<MyPassword>"
}
}
]
}
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 27 (15 by maintainers)
No, you don’t have to upgrade your TFS server (but it would be a good thing, cause it contains lots of new features).
You could try to use the service with the name Tfs, not Tfs2015.