-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
(Disclaimer I'm not sure if this error is coming from event store client, from event store itself, or something completely different that has not yet been identified.)
We have an event handler that throws the following error when it runs for a sufficiently long time:
Error: write after end
at writeAfterEnd (_stream_writable.js:166:12)
at Socket.Writable.write (_stream_writable.js:217:5)
at Socket.write (net.js:650:40)
at Connection.sendMessage (/home/app/tableservice/node_modules/event-store-client/lib/connection.js:533:21)
at receiveMessage (/home/app/tableservice/node_modules/event-store-client/lib/connection.js:160:22)
at Socket.onData (/home/app/tableservice/node_modules/event-store-client/lib/connection.js:81:21)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:172:18)
at Socket.Readable.push (_stream_readable.js:130:10)
at TCP.onread (net.js:542:20)
/home/app/tableservice/tableEventStore/index.js:404
throw err;
^
Error: write after end
at writeAfterEnd (_stream_writable.js:166:12)
at Socket.Writable.write (_stream_writable.js:217:5)
at Socket.write (net.js:650:40)
at Connection.sendMessage (/home/app/tableservice/node_modules/event-store-client/lib/connection.js:533:21)
at receiveMessage (/home/app/tableservice/node_modules/event-store-client/lib/connection.js:160:22)
at Socket.onData (/home/app/tableservice/node_modules/event-store-client/lib/connection.js:81:21)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:172:18)
at Socket.Readable.push (_stream_readable.js:130:10)
at TCP.onread (net.js:542:20)
If I restart the service running this event handler, it picks up where it died just fine and continues processing events.
Something that might be relevant - the event handler that appears to be the source of this error is subscribed to one stream. When it picks up a certain class of event, it opens up a different stream to read detailed events relating to the subscribed stream.
Metadata
Metadata
Assignees
Labels
No labels