Created
September 1, 2016 06:27
-
-
Save toricls/100f21b30d29f469d4fae23c42a1886b to your computer and use it in GitHub Desktop.
AWS Lambda Node.js 4.3 retry log by passing error object to callback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
START RequestId: 94a083a4-700a-11e6-bd2f-39c6f7b14de8 Version: $LATEST | |
2016-09-01T06:09:02.914Z 94a083a4-700a-11e6-bd2f-39c6f7b14de8 | |
{ | |
"errorMessage": "fail" | |
} | |
END RequestId: 94a083a4-700a-11e6-bd2f-39c6f7b14de8 | |
REPORT RequestId: 94a083a4-700a-11e6-bd2f-39c6f7b14de8 Duration: 0.73 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 16 MB | |
START RequestId: 94a083a4-700a-11e6-bd2f-39c6f7b14de8 Version: $LATEST | |
2016-09-01T06:09:59.216Z 94a083a4-700a-11e6-bd2f-39c6f7b14de8 | |
{ | |
"errorMessage": "fail" | |
} | |
END RequestId: 94a083a4-700a-11e6-bd2f-39c6f7b14de8 | |
REPORT RequestId: 94a083a4-700a-11e6-bd2f-39c6f7b14de8 Duration: 4.20 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 16 MB | |
START RequestId: 94a083a4-700a-11e6-bd2f-39c6f7b14de8 Version: $LATEST | |
2016-09-01T06:12:05.373Z 94a083a4-700a-11e6-bd2f-39c6f7b14de8 | |
{ | |
"errorMessage": "fail" | |
} | |
END RequestId: 94a083a4-700a-11e6-bd2f-39c6f7b14de8 | |
REPORT RequestId: 94a083a4-700a-11e6-bd2f-39c6f7b14de8 Duration: 1.73 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 16 MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
exports.handler = (event, context, callback) => { | |
callback('fail') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same behaviour as
context.fail
.