Closed Oxymoron79 closed 9 years ago
Looks like same issue for me:
undefined is not a function TypeError: undefined is not a function
at /home/ubuntu/meshblu/lib/messageIOEmitter.coffee:16:7
at Function.forEach (/home/ubuntu/meshblu/node_modules/lodash/dist/lodash.js:3298:15)
at MessageIOEmitter.emit (/home/ubuntu/meshblu/lib/messageIOEmitter.coffee:14:7)
at /home/ubuntu/meshblu/lib/messageIOEmitter.coffee:1:1
at /home/ubuntu/meshblu/lib/sendMessage.js:140:11
at /home/ubuntu/meshblu/lib/simpleAuth.coffee:11:17
at [object Object]._onTimeout (/home/ubuntu/meshblu/node_modules/lodash/dist/lodash.js:5496:43)
at Timer.listOnTimeout (timers.js:110:15)
Actually my change only fixes it in one case. Reopening.
i get the same error with an android mqtt client
Cannot call method 'in' of undefined TypeError: Cannot call method 'in' of undefined
at /Users/zhai/work/node/octublu/meshblu/lib/messageIOEmitter.coffee:16:7
at arrayEach (/Users/zhai/work/node/octublu/meshblu/node_modules/lodash/index.js:1289:13)
at Function.
i start redis and it works, nice
I'm running meshblu in a docker container and wrote test client using the meshblu-mqtt node module. The client periodically broadcasts a message that results in a TypeError in the container:
And when I try to send a message to the test client using the REST interface, another TypeError is thrown:
I wrote the same test client using the meshblu node module (websocket), which results in the following TypeError when the client broadcasts a message:
Here's the code of the client using the meshblu-mqtt module:
And here's the code of the client using the meshblu module:
Any ideas what's going wrong here?