nearform / cloudwatchlogs-stream

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

OperationAbortedException #7

Open shnist opened 8 years ago

shnist commented 8 years ago

Hi,

We're getting the following error occur periodically. It causes the docker container to crash.

/usr/src/app/node_modules/cloudwatchlogs-stream/node_modules/aws-sdk/lib/request.js:32
          throw err;
                ^
Error: OperationAbortedException: A conflicting operation is currently in progress against this resource. Please try again.
    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

I did a little Google research and it seems that this could be caused by the library attempting to write to cloudwatch before the previous write is finished.