nearform / cloudwatchlogs-stream

Stream interfacet to CloudWatch Logs
MIT License
11 stars 2 forks source link

InvalidSequenceTokenException #6

Open shnist opened 8 years ago

shnist commented 8 years ago

Hi,

We have a fairly high volume of messages being sent through via docker loghose. Bulk index and timeout are both set to 20. Our docker container crashes fairly frequently with the following error:

/usr/src/app/node_modules/cloudwatchlogs-stream/node_modules/aws-sdk/lib/request.js:32
          throw err;
                ^
Error: InvalidSequenceTokenException: The given sequenceToken is invalid. The next expected sequenceToken is: 49542671679544097822771285878562419080018331856434890290
    at CloudWatchLogsStream.<anonymous> (/usr/src/app/index.js:66:13)
    at CloudWatchLogsStream.emit (events.js:117:20)
    at Response.<anonymous> (/usr/src/app/node_modules/cloudwatchlogs-stream/index.js:47:26)
    at Request.<anonymous> (/usr/src/app/node_modules/cloudwatchlogs-stream/node_modules/aws-sdk/lib/request.js:350:18)
    at Request.callListeners (/usr/src/app/node_modules/cloudwatchlogs-stream/node_modules/aws-sdk/lib/sequential_executor.js:100:18)
    at Request.emit (/usr/src/app/node_modules/cloudwatchlogs-stream/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
    at Request.emit (/usr/src/app/node_modules/cloudwatchlogs-stream/node_modules/aws-sdk/lib/request.js:604:14)
    at Request.transition (/usr/src/app/node_modules/cloudwatchlogs-stream/node_modules/aws-sdk/lib/request.js:21:12)
    at AcceptorStateMachine.runTo (/usr/src/app/node_modules/cloudwatchlogs-stream/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /usr/src/app/node_modules/cloudwatchlogs-stream/node_modules/aws-sdk/lib/state_machine.js:26:10

Any ideas on what could be causing this?