s3.upload does not do anything

Viewed 107
const params = {
  Bucket: 'static.lore.com',
  Key:`someKey.json`,
  ContentType: 'application/json',
  Body: JSON.stringify(bodyJSON),
};

console.info(`Post ${postMetaData.id} uploading`);
const response = await s3.upload(params).promise();
console.info(`Post ${postMetaData.id} uploaded successfully`, response);

I tried like 100 different stuff, when lambda get to this point it shows me the post uploading log and then it goes dark, and does no do anything else until timeout kill the lambda.

Everything work locally Y had search a lot off example and i still stuck, please help.

0 Answers
Related