kyle-kelly/MMM-uber

undefined arrivals

Closed this issue · 3 comments

MMM-Uber module is not working anymore, verified my token and location and the logs are showing this:

TypeError: Cannot read property 'statusCode' of undefined
    at Request._callback (/home/pi/MagicMirror/modules/MMM-uber/node_helper.js:58:96)
    at self.callback (/home/pi/MagicMirror/node_modules/request/request.js:186:22)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:191:7)
    at Request.onRequestError (/home/pi/MagicMirror/node_modules/request/request.js:878:8)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:191:7)
    at TLSSocket.socketErrorListener (_http_client.js:358:9)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:191:7)

Module is showing something like
screen shot 2018-06-15 at 10 16 12 pm

Actually was a different issue, uber api is returning this possible uber rides:
UberXL|Black SUV|UberPool|UberX|Select|Black
And it seems this module was expecting:
Possible values: 'POOL', 'uberXL', 'SELECT', 'BLACK', 'SUV', 'ASSIST', 'WAV', 'TAXI'
Weird the Uber Api still mentions the old ones as possible values...

Will submit a PR with the changes

Handled here. Thanks for your help.

Awesome! thanks, I love this module!