HansHammel / Log.io.coffee

Real-time log monitoring in your browser
http://logio.org
12 stars 4 forks source link

Uncaught TypeError: Cannot read property 'stream' of undefined #3

Open johnbritto1 opened 5 years ago

johnbritto1 commented 5 years ago

on the browser console, I get to see the following errors. Please help.

Uncaught TypeError: Cannot read property 'stream' of undefined at WebClient._ping (log.io.js:173296) at Socket. (log.io.js:172804) at Socket.Emitter.emit (log.io.js:26417) at Socket.emit (log.io.js:146941) at Manager.emitAll (log.io.js:146284) at Manager.onping (log.io.js:146517) at Socket. (log.io.js:26280) at Socket.Emitter.emit (log.io.js:26417) at Socket. (log.io.js:42246) at Socket.on (log.io.js:26349)

In log.io.js

WebClient.prototype._ping = function(msg) { var node, stream; stream = msg.stream, node = msg.node; <---- (X) stream = this.logStreams.get(stream); node = this.logNodes.get(node); if (stream) { stream.trigger('ping', node); } if (node) { node.trigger('ping', stream); } return this.stats.messages++; };

johnbritto1 commented 5 years ago

Hello,

In firefox getting error as.

TypeError: msg is undefinedlog.io.js:183771:5 _ping http://localhost:28778/lib/log.io.js:183771 bind http://localhost:28778/lib/log.io.js:183279 emit http://localhost:28778/lib/log.io.js:44054 emit http://localhost:28778/lib/log.io.js:160256 emitAll http://localhost:28778/lib/log.io.js:159613 onping http://localhost:28778/lib/log.io.js:159834 exports http://localhost:28778/lib/log.io.js:26291 emit http://localhost:28778/lib/log.io.js:44054 ping http://localhost:28778/lib/log.io.js:42249 on http://localhost:28778/lib/log.io.js:43986 emit http://localhost:28778/lib/log.io.js:44054 flush http://localhost:28778/lib/log.io.js:42288 sendPacket http://localhost:28778/lib/log.io.js:42344 ping http://localhost:28778/lib/log.io.js:42248 pingIntervalTimer http://localhost:28778/lib/log.io.js:42235

any workaround. Thanks.