nodejs-EventStore icon indicating copy to clipboard operation
nodejs-EventStore copied to clipboard

Crap, the packet isn't big enough. Maybe there's another packet coming?

Open MikeBild opened this issue 11 years ago • 2 comments

Error JSON.parse from an events array.

es.readStream('myStream', function(err, events){ if(err) return; events.forEach(function(event){ var tweet = event.data.toString(); console.log(JSON.parse(tweet)); }); });

MikeBild avatar Jun 28 '13 10:06 MikeBild

Where are the tweets/event data coming from? Are they valid JSON data? What if you just console.log(tweet)?

kenpratt avatar Jun 30 '13 21:06 kenpratt

EDIT: Turned out to be a port issue and not a nodejs-eventstore issue

Using (Get)Eventstore 3.0.3

Executed your Basic example (in the examples folder) and are receiving the exact same message as MikeBild :

Connecting to EventStore at 127.0.0.1:2124 Sending CreateStream command with correlation id: 95e3300e-ee94-4389-a5d1-6d1bd6 162490 Connected Crap, the packet isn't big enough. Maybe there's another packet coming? (wanted: 1347703884 bytes, got: 505 bytes) Disconnected

wjvander avatar Apr 16 '15 13:04 wjvander