Skip to content

MIGRATION ISSUE: InvalidSignatureException after upgrade NodeJS 20 to 22 in AWS lambda #7471

@ThangBui2703

Description

@ThangBui2703

Pre-Migration Checklist

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

Metadata

Metadata

Assignees

Labels

closed-for-stalenessp3This is a minor priority issueresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.v2-v3-inconsistencyBehavior has changed from v2 to v3, or feature is missing altogether

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions