You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran example/index.js on my local machine without any modification on Node.js version 8.11.4. I think the error happens when the followers receive a packet with type "append" from the leader and log replication is not enabled.
Here's the logs:
(node:19891) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 101)
(node:19891) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'getLastInfo' of null
at MsgRaft.raft.on (/home/andy/programs/liferaft/index.js:294:48)
at MsgRaft.emit (/home/andy/programs/liferaft/node_modules/eventemitter3/index.js:130:35)
at RepSocket.socket.on (/home/andy/programs/liferaft/example/index.js:29:12)
at emitTwo (events.js:126:13)
at RepSocket.emit (events.js:214:7)
at Parser.<anonymous> (/home/andy/programs/liferaft/example/node_modules/axon/lib/sockets/rep.js:51:15)
at emitOne (events.js:116:13)
at Parser.emit (events.js:211:7)
at Parser._write (/home/andy/programs/liferaft/example/node_modules/amp/lib/stream.js:91:16)
at doWrite (_stream_writable.js:397:12)
The text was updated successfully, but these errors were encountered:
I ran example/index.js on my local machine without any modification on Node.js version 8.11.4. I think the error happens when the followers receive a packet with type "append" from the leader and log replication is not enabled.
Here's the logs:
The text was updated successfully, but these errors were encountered: