-
Notifications
You must be signed in to change notification settings - Fork 647
Description
Pre-Migration Checklist
- I've read the Migration Guide.
- I've reviewed the upgrading notes and major version differences mentioned in
UPGRADING.md. - I've checked AWS Forums and StackOverflow for similar migration issues.
Which JavaScript Runtime is this issue in?
Node.js (includes AWS Lambda)
AWS Lambda Usage
- Yes, my application is running on AWS Lambda.
- No, my application is not running on AWS Lambda.
Describe the Migration Issue
I upgrade my NodeJS runtime in lambda from 20 to 22 and got error {
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "InvalidSignatureException: Signature expired: 20251103T110018Z is now earlier than 20251103T110817Z (20251103T112317Z - 15 min.)",
"trace": [
"Runtime.UnhandledPromiseRejection: InvalidSignatureException: Signature expired: 20251103T110018Z is now earlier than 20251103T110817Z (20251103T112317Z - 15 min.)",
" at process. (file:///var/runtime/index.mjs:1448:17)",
" at process.emit (node:events:518:28)",
" at emitUnhandledRejection (node:internal/process/promises:252:13)",
" at throwUnhandledRejectionsMode (node:internal/process/promises:388:19)",
" at processPromiseRejections (node:internal/process/promises:475:17)",
" at process.processTicksAndRejections (node:internal/process/task_queues:106:32)"
]
}
Code Comparison
No response
Observed Differences/Errors
{
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "InvalidSignatureException: Signature expired: 20251103T110018Z is now earlier than 20251103T110817Z (20251103T112317Z - 15 min.)",
"trace": [
"Runtime.UnhandledPromiseRejection: InvalidSignatureException: Signature expired: 20251103T110018Z is now earlier than 20251103T110817Z (20251103T112317Z - 15 min.)",
" at process. (file:///var/runtime/index.mjs:1448:17)",
" at process.emit (node:events:518:28)",
" at emitUnhandledRejection (node:internal/process/promises:252:13)",
" at throwUnhandledRejectionsMode (node:internal/process/promises:388:19)",
" at processPromiseRejections (node:internal/process/promises:475:17)",
" at process.processTicksAndRejections (node:internal/process/task_queues:106:32)"
]
}
Additional Context
I am calling a lambda from another lambda via axios, then got 502 error. I go to check cloud watch and got error InvalidSignatureException: Signature expired: 20251103T110018Z is now earlier than 20251103T110817Z (20251103T112317Z - 15 min.). But if i recall after get the error it will work as expected and do not error