awslabs / awslabs/aws-lambda-redshift-loader

Error when trying to send SNS

Open
#203 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
595
Forks
161
PR merge metrics
No merged PRs in 30d

Description

Hi,

I just deployed `2.7.0` and uploaded a test file to S3 bucket with wrong format to test the notification, but it seems lambda function failed when trying to send SNS. I wonder if this is caused by incompatibility with runtime environment? Got the same error when using `nodejs10.x` and `nodejs12.x`. CloudWatch log:
```
{
"errorType": "Error",
"errorMessage": "error",
"stack": [
"Error: error",
" at _homogeneousError (/var/runtime/CallbackContext.js:13:12)",
" at postError (/var/runtime/CallbackContext.js:30:51)",
" at done (/var/runtime/CallbackContext.js:57:7)",
" at Object.done (/var/runtime/CallbackContext.js:105:16)",
" at /var/task/index.js:1377:37",
" at /var/task/index.js:1433:13",
" at /var/task/node_modules/async/dist/async.js:473:16",
" at next (/var/task/node_modules/async/dist/async.js:5329:29)",
" at /var/task/node_modules/async/dist/async.js:969:16",
" at Response. (/var/task/index.js:1397:13)"
]
}
```
and on `nodejs8.10`:
```
{
"errorMessage": "error"
}
```
~Since `nodejs8.10` is approaching end of life: https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html~

`0.10` have long deprecated and is no longer available in AWS Lambda, I wonder if there is any plan for supporting `10.x` and `12.x`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.