astroscrum / hubot-astroscrum

Hubot adapter for Astroscrum API
https://www.npmjs.com/package/hubot-astroscrum
MIT License
5 stars 6 forks source link

astroscrum.coffee: ERROR TypeError: Cannot read property 'auth_token' of undefined #11

Open mwelch2 opened 8 years ago

mwelch2 commented 8 years ago

Running my hubot as a heroku app, everything works great apart from astroscrum. It appears that there is a problem with the astroscrum.coffee script, but the problem may well lie elsewhere. Can somebody help? Apologise for being a bit of a noob, but my day-to-day role is as a BI developer and I just want to get the standups working in Slack for our team.

Here's the heroku log:


2016-04-27T08:50:25.428781+00:00 heroku[web.1]: Unidling
2016-04-27T08:50:25.430560+00:00 heroku[web.1]: State changed from down to starting
2016-04-27T08:50:27.400181+00:00 heroku[web.1]: Starting process with command `bin/hubot -a slack`
2016-04-27T08:50:33.742571+00:00 app[web.1]: [Wed Apr 27 2016 08:50:33 GMT+0000 (London)] INFO Connecting...
2016-04-27T08:50:33.967978+00:00 app[web.1]: [Wed Apr 27 2016 08:50:33 GMT+0000 (London)] INFO Logged in as bob_bird of global network learning services, but not yet connected
2016-04-27T08:50:34.185867+00:00 heroku[web.1]: State changed from starting to up
2016-04-27T08:50:34.172701+00:00 app[web.1]: [Wed Apr 27 2016 08:50:34 GMT+0000 (London)] INFO Slack client now connected
2016-04-27T08:50:34.831847+00:00 app[web.1]: [Wed Apr 27 2016 08:50:34 GMT+0000 (London)] INFO hubot-redis-brain: Discovered redis from REDIS_URL environment variable
2016-04-27T08:50:35.629263+00:00 heroku[router]: at=info method=GET path="/" host=bob-bird.herokuapp.com request_id=b139ad8e-be61-4219-9e75-6cdb9bdabc05 fwd="80.231.223.90" dyno=web.1 connect=1ms service=143ms status=404 bytes=218
2016-04-27T08:50:35.639144+00:00 app[web.1]: [Wed Apr 27 2016 08:50:35 GMT+0000 (London)] INFO hubot-redis-brain: Successfully authenticated to Redis
2016-04-27T08:50:35.642657+00:00 app[web.1]: [Wed Apr 27 2016 08:50:35 GMT+0000 (London)] INFO hubot-redis-brain: Data for hubot brain retrieved from Redis
2016-04-27T08:50:35.705277+00:00 app[web.1]: [Wed Apr 27 2016 08:50:35 GMT+0000 (London)] ERROR TypeError: Cannot read property 'auth_token' of undefined
2016-04-27T08:50:35.705287+00:00 app[web.1]:   at /app/node_modules/hubot-astroscrum/src/astroscrum.coffee:188:9, :169:72
2016-04-27T08:50:35.705288+00:00 app[web.1]:   at /app/node_modules/hubot-astroscrum/src/astroscrum.coffee:93:5, :110:7
2016-04-27T08:50:35.705289+00:00 app[web.1]:   at Request._callback (/app/node_modules/hubot-astroscrum/src/astroscrum.coffee:63:7, :56:16)
2016-04-27T08:50:35.705290+00:00 app[web.1]:   at Request.self.callback (/app/node_modules/hubot-astroscrum/node_modules/request/request.js:200:22)
2016-04-27T08:50:35.705291+00:00 app[web.1]:   at Request.emit (events.js:98:17)
2016-04-27T08:50:35.705291+00:00 app[web.1]:   at Request. (/app/node_modules/hubot-astroscrum/node_modules/request/request.js:1067:10)
2016-04-27T08:50:35.705292+00:00 app[web.1]:   at Request.emit (events.js:117:20)
2016-04-27T08:50:35.705293+00:00 app[web.1]:   at IncomingMessage. (/app/node_modules/hubot-astroscrum/node_modules/request/request.js:988:12)
2016-04-27T08:50:35.705294+00:00 app[web.1]:   at IncomingMessage.emit (events.js:117:20)
2016-04-27T08:50:35.705294+00:00 app[web.1]:   at _stream_readable.js:944:16
2016-04-27T08:50:35.705295+00:00 app[web.1]:   at process._tickCallback (node.js:458:13)
2016-04-27T08:50:35.705296+00:00 app[web.1]:
2016-04-27T08:50:35.747545+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=bob-bird.herokuapp.com request_id=ea602cf8-ce83-41f9-8d5b-9093f32662cd fwd="80.231.223.90" dyno=web.1 connect=1ms service=3ms status=404 bytes=229
2016-04-27T08:51:21+00:00 app[heroku-redis]: source=REDIS sample#active-connections=3 sample#load-avg-1m=0.11 sample#load-avg-5m=0.115 sample#load-avg-15m=0.115 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13465376.0kB sample#memory-cached=349664kB sample#memory-redis=340032bytes sample#hit-rate=0.83333 sample#evicted-keys=0
2016-04-27T08:51:44.967175+00:00 app[web.1]: [Wed Apr 27 2016 08:51:44 GMT+0000 (London)] ERROR SyntaxError: Unexpected token <
2016-04-27T08:51:44.967187+00:00 app[web.1]:   at Object.parse (native)
2016-04-27T08:51:44.967188+00:00 app[web.1]:   at Request._callback (/app/node_modules/hubot-astroscrum/src/astroscrum.coffee:56:7, :39:29)
2016-04-27T08:51:44.967188+00:00 app[web.1]:   at Request.self.callback (/app/node_modules/hubot-astroscrum/node_modules/request/request.js:200:22)
2016-04-27T08:51:44.967189+00:00 app[web.1]:   at Request.emit (events.js:98:17)
2016-04-27T08:51:44.967190+00:00 app[web.1]:   at Request. (/app/node_modules/hubot-astroscrum/node_modules/request/request.js:1067:10)
2016-04-27T08:51:44.967190+00:00 app[web.1]:   at Request.emit (events.js:117:20)
2016-04-27T08:51:44.967191+00:00 app[web.1]:   at IncomingMessage. (/app/node_modules/hubot-astroscrum/node_modules/request/request.js:988:12)
2016-04-27T08:51:44.967192+00:00 app[web.1]:   at IncomingMessage.emit (events.js:117:20)
2016-04-27T08:51:44.967192+00:00 app[web.1]:   at _stream_readable.js:944:16
2016-04-27T08:51:44.967193+00:00 app[web.1]:   at process._tickCallback (node.js:458:13)
2016-04-27T08:51:44.967194+00:00 app[web.1]: