amazon web services - AWS Beanstalk Worker - Node.js Message format -


i'm in place aws. i'm figuring out how use worker app in elastic beanstalk. have express app set listen post. put message sql queue. in node, can trigger message. have not idea how @ payload. usual, seem left grasping aws trying glean basic of details documentation. if can give me pointers, appreciate it. i'm pasting json message body on aws sqs console @ point in time. have tried request.body , request.payload on node side - nothing.

this request gets hit when data comes - it's pretty simply. should put log. i've tried request.body, request.params, 'undefined'. dumped out entire request object here, , i'm not seeing it. don't know it's supposed be, can't tell whether it's code, or it's not there.

var stringify = require('json-stringify-safe');  function test(request, response, next) {      mainlog.log("info",stringify(request));      respond_to_http_request(response, null, null);; } exports.test = test; 

var bodyparser = require('body-parser'); app.use(bodyparser.json()); 

Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -