Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-sdk V3 for NodeJS throws 404: UnknownError when calling ListFunctionsCommand #8594

Open
eranbo opened this issue Feb 14, 2025 · 1 comment
Labels

Comments

@eranbo
Copy link

eranbo commented Feb 14, 2025

Using aws-sdk V3 for nodeJs is not working with Lambda.
When running the next code:

const client_ = new LambdaClient({ endpoint: 'http://localhost:5000'});

const res = await client_.send(new ListFunctionsCommand());

The following exception is raised:

404: UnknownError
    at throwDefaultError (~\dev\project\core\node_modules\.pnpm\@smithy+smithy-client@3.4.5\node_modules\@smithy\smithy-client\dist-cjs\index.js:836:20)
    at ~\dev\project\core\node_modules\.pnpm\@smithy+smithy-client@3.4.5\node_modules\@smithy\smithy-client\dist-cjs\index.js:845:5
    at de_CommandError (~\dev\project\core\node_modules\.pnpm\@aws-sdk+client-lambda@3.699.0\node_modules\@aws-sdk\client-lambda\dist-cjs\index.js:3917:14)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at ~\dev\project\core\node_modules\.pnpm\@smithy+middleware-serde@3.0.10\node_modules\@smithy\middleware-serde\dist-cjs\index.js:35:20
    at ~\dev\project\core\node_modules\.pnpm\@smithy+core@2.5.4\node_modules\@smithy\core\dist-cjs\index.js:168:18
    at ~\dev\project\core\node_modules\.pnpm\@smithy+middleware-retry@3.0.28\node_modules\@smithy\middleware-retry\dist-cjs\index.js:320:38
    at ~\dev\project\core\node_modules\.pnpm\@aws-sdk+middleware-logger@3.696.0\node_modules\@aws-sdk\middleware-logger\dist-cjs\index.js:34:22
    at main (~\dev\project\core\tools\src\get-aws-lambda\main.ts:18:21)
    at processMain (~\dev\project\core\bl\src\processMain.ts:33:24)
@bblommers
Copy link
Collaborator

Thanks for raising this @eranbo! Marking it as a bug.

@bblommers bblommers added the bug label Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants