Hi, I recently updated my local repo from commit bb7adfa to 844662b. And now, I have an issue when a meshblu-npm module connects to the meshblu server.
When I start the meshblu server:
C:\Users\Jo\meshblu>node server.js
MM MM hh bb lll
MMM MMM eee sss hh bb lll uu uu
MM MM MM ee e s hhhhhh bbbbbb lll uu uu
MM MM eeeee sss hh hh bb bb lll uu uu
MM MM eeeee s hh hh bbbbbb lll uuuu u
sss
Meshblu (formerly skynet.im) development environment loaded...
Starting HTTP/HTTPS... done.
HTTP listening at 0.0.0.0:5050
When a meshblu-npm module connect to the meshblu server:
C:\Users\Jo\meshblu>node server.js
MM MM hh bb lll
MMM MMM eee sss hh bb lll uu uu
MM MM MM ee e s hhhhhh bbbbbb lll uu uu
MM MM eeeee sss hh hh bb bb lll uu uu
MM MM eeeee s hh hh bbbbbb lll uuuu u
sss
Meshblu (formerly skynet.im) development environment loaded...
Starting HTTP/HTTPS... done.
HTTP listening at 0.0.0.0:5050
Missing error handler on `socket`.
TypeError: Not a string or buffer
at TypeError (native)
at Hash.update (crypto.js:119:16)
at Device._hashToken (C:\Users\Jo\meshblu\lib\models\device.coffee:197:12)
at Device._hashToken (C:\Users\Jo\meshblu\lib\models\device.coffee:1:1)
at Device.verifyNewToken (C:\Users\Jo\meshblu\lib\models\device.coffee:58:20)
at Device.verifyNewToken (C:\Users\Jo\meshblu\lib\models\device.coffee:1:1)
at Device.verifyToken (C:\Users\Jo\meshblu\lib\models\device.coffee:44:6)
at Device.verifyToken (C:\Users\Jo\meshblu\lib\models\device.coffee:1:1)
at module.exports (C:\Users\Jo\meshblu\lib\authDevice.coffee:9:10)
at module.exports (C:\Users\Jo\meshblu\lib\updateSocketId.js:46:3)
at SocketLogicThrottler.<anonymous> (C:\Users\Jo\meshblu\lib\socketLogic.js:68:5)
at C:\Users\Jo\meshblu\lib\SocketLogicThrottler.coffee:16:16
at C:\Users\Jo\meshblu\lib\QueryThrottle.coffee:15:7
at C:\Users\Jo\meshblu\node_modules\limitus\lib\limitus.js:140:17
at Limitus.set (C:\Users\Jo\meshblu\node_modules\limitus\lib\limitus.js:182:5)
at C:\Users\Jo\meshblu\node_modules\limitus\lib\limitus.js:132:14
at Limitus.get (C:\Users\Jo\meshblu\node_modules\limitus\lib\limitus.js:192:5)
at Limitus.baseDrop (C:\Users\Jo\meshblu\node_modules\limitus\lib\limitus.js:120:10)
at Limitus.drop (C:\Users\Jo\meshblu\node_modules\limitus\lib\limitus.js:81:21)
at Object.rateLimit (C:\Users\Jo\meshblu\lib\getThrottles.coffee:15:13)
at QueryThrottle.throttle (C:\Users\Jo\meshblu\lib\QueryThrottle.coffee:9:20)
at QueryThrottle.throttle (C:\Users\Jo\meshblu\lib\QueryThrottle.coffee:1:1)
at Socket.<anonymous> (C:\Users\Jo\meshblu\lib\SocketLogicThrottler.coffee:15:25)
at Socket.emit (events.js:107:17)
at Socket.onevent (C:\Users\Jo\meshblu\node_modules\socket.io\lib\socket.js:330:8)
at Socket.onpacket (C:\Users\Jo\meshblu\node_modules\socket.io\lib\socket.js:290:12)
at Client.ondecoded (C:\Users\Jo\meshblu\node_modules\socket.io\lib\client.js:193:14)
at Decoder.Emitter.emit (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\socket.io-parser\node_modules\component-emitter\index.js:134:20)
at Decoder.add (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\socket.io-parser\index.js:247:12)
at Client.ondata (C:\Users\Jo\meshblu\node_modules\socket.io\lib\client.js:175:18)
at Socket.emit (events.js:107:17)
at Socket.onPacket (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\engine.io\lib\socket.js:99:14)
at WebSocket.emit (events.js:129:20)
at WebSocket.Transport.onPacket (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\engine.io\lib\transport.js:91:8)
at WebSocket.Transport.onData (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\engine.io\lib\transport.js:102:8)
at WebSocket.onData (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\engine.io\lib\transports\websocket.js:75:30)
at WebSocket.emit (events.js:110:17)
at Receiver.ontext (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\engine.io\node_modules\ws\lib\WebSocket.js:741:10)
at Receiver.opcodes.1.finish (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\engine.io\node_modules\ws\lib\Receiver.js:391:14)
at Receiver.expectHandler (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\engine.io\node_modules\ws\lib\Receiver.js:372:33)
at Receiver.add (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\engine.io\node_modules\ws\lib\Receiver.js:87:24)
at Socket.firstHandler (C:\Users\Jo\meshblu\node_modules\socket.io\node_modules\engine.io\node_modules\ws\lib\WebSocket.js:718:22)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at TCP.onread (net.js:538:20)
[TypeError: undefined is not a function]
Hi, I recently updated my local repo from commit
bb7adfa
to844662b
. And now, I have an issue when a meshblu-npm module connects to the meshblu server.