sfn client broken in AWS Lambda as of this morning #5865
Unanswered
diegodleon
asked this question in
Q&A
Replies: 3 comments
-
I've tried the latest "@aws-sdk/client-sfn" and downgraded to the past major version "@aws-sdk/client-sfn": "^3.499.0", same issue remains. Not sure yet if this is the Lambda runtime or something changed in the library. |
Beta Was this translation helpful? Give feedback.
0 replies
-
redirect to #5866 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Attempting to use the sfn client to trigger an AWS function through an AWS Lambda suddenly started yielding out this error a few hours ago.
{
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module 'fast-xml-parser'\nRequire stack:\n- /var/task/node_modules/@aws-sdk/core/dist-cjs/index.js\n- /var/task/node_modules/@aws-sdk/client-sfn/dist-cjs/auth/httpAuthSchemeProvider.js\n- /var/task/node_modules/@aws-sdk/client-sfn/dist-cjs/index.js\n- /var/task/src/handlers/csv-import.js\n- /var/runtime/index.mjs",
"stack": [
"Runtime.ImportModuleError: Error: Cannot find module 'fast-xml-parser'",
"Require stack:",
"- /var/task/node_modules/@aws-sdk/core/dist-cjs/index.js",
"- /var/task/node_modules/@aws-sdk/client-sfn/dist-cjs/auth/httpAuthSchemeProvider.js",
"- /var/task/node_modules/@aws-sdk/client-sfn/dist-cjs/index.js",
"- /var/task/src/handlers/csv-import.js",
"- /var/runtime/index.mjs",
" at _loadUserApp (file:///var/runtime/index.mjs:1087:17)",
" at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)",
" at async start (file:///var/runtime/index.mjs:1282:23)",
" at async file:///var/runtime/index.mjs:1288:1"
]
}
AWS Lambda is running on runtime NodeJs18.
Removing the sfn client code from the lambda allows the lambda to continue to execute with no issues.
Beta Was this translation helpful? Give feedback.
All reactions