Error when trying to send SNS
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- aws, javascript, node.js
Research direction
Start with the Lambda entry points shown in index.js around lines 1377, 1397, and 1433, then reproduce the S3 upload with the wrong format while checking the CloudWatch logs. Compare the SNS failure under the reported Lambda runtimes and trace the callback error path. Done means the notification path works or the runtime compatibility limitation is documented with a reproducible cause.
Written by the indexing model from the issue text.
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.<anonymous> (/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?
- Dominant language
- JavaScript
- Stars
- 595
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from awslabs/aws-lambda-redshift-loader
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 32/100
awslabs/aws-lambda-redshift-loader#247 · 3 comments ·
-
Manifest missing file returned in describeBatch.jsMay be free again @IanMeyers claimed this 1390 days ago, and no pull request is open. Open
awslabs/aws-lambda-redshift-loader#244 · 4 comments · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
awslabs/aws-lambda-redshift-loader#239 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
awslabs/aws-lambda-redshift-loader#238 · 1 comment ·
All issues in awslabs/aws-lambda-redshift-loader
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
enhancement
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
holepunchto/hrpc-test#28 ·
-
good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
anoopcodehack/DevBoard#616 ·
Maintainers usually reply within 2 days
-
idnits3
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
ietf-tools/idnits#319 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
521xueweihan/HelloGitHub#3939 ·