nodejs-EventStore
nodejs-EventStore copied to clipboard
Crap, the packet isn't big enough. Maybe there's another packet coming?
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)); }); });
Where are the tweets/event data coming from? Are they valid JSON data? What if you just console.log(tweet)
?
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