Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OperationAbortedException: A conflicting operation is currently in progress against this resource. Please try again. #5

Closed
ChadMartinson opened this issue Nov 12, 2015 · 1 comment

Comments

@ChadMartinson
Copy link

When I fired up the server using the example I got bunyanCW is undefined. I changed the request var from createCWStream to bunyanCW and it fired up and worked just fine reporting to cloudwatch. However, when I fired off an event I got this error.

OperationAbortedException: A conflicting operation is currently in progress against this resource. Please try again.

Here is my current setup

var bunyan = require('bunyan');
var bunyanCW = require('bunyan-cloudwatch');
var extend = require('extend');

/**
 * Provide a common base logger for our application
 *
 * @param  {string} component The (sub)component we are logging for
 * @param  {Object} defaults  Any 'default' or 'common' values to include in the logger
 * @return {Object}           The logger
 */
module.exports = function (component, defaults) {

  var stream = bunyanCW({
    logGroupName: 'reactor-group',
    logStreamName: 'reactor-stream',
    region: 'us-east-1'
  });
  // var streams = clone(config.streams);
  var options = {
    name: 'reactor.core',
    streams: [
      {
        stream: process.stdout,
        level: 'debug'
      },
      {
        stream: stream,
        type: 'raw'
      }
    ]
  };
  if (typeof component === 'string') {
    options.component = component;
  }
  if (typeof defaults === 'object') {
    options = extend(false, options, defaults);
  }

  var logger = bunyan.createLogger(options);

  var logLevel;
  if (process.env.LOGLEVEL) {
    logLevel = process.env.LOGLEVEL;
  } else {
    logLevel = (process.env.NODE_ENV === 'development' ? 'debug' : 'info');
  }
  logger.level(logLevel);

  return logger;
};
@ChadMartinson
Copy link
Author

nevermind. If I delete my aws group it works. Now I'm getting the #1 issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant