[go: nahoru, domu]

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

npm: Not implemented: crypto.Hmac #16107

Closed
mfulton26 opened this issue Sep 30, 2022 · 1 comment
Closed

npm: Not implemented: crypto.Hmac #16107

mfulton26 opened this issue Sep 30, 2022 · 1 comment

Comments

@mfulton26
Copy link
mfulton26 commented Sep 30, 2022

I know npm support is still experimental/unstable but I'm guessing issue reports are still helpful. If not I can close.

import AWS from "npm:aws-sdk";

const lambda = new AWS.Lambda();

await lambda.listFunctions().promise();
error: Uncaught Error: Not implemented: crypto.Hmac
  throw new Error(message);
        ^
    at notImplemented (https://deno.land/std@0.158.0/node/_utils.ts:25:9)
    at new Hmac (https://deno.land/std@0.158.0/node/internal/crypto/hash.ts:136:5)
    at Object.createHmac (https://deno.land/std@0.158.0/node/crypto.ts:264:10)
    at Object.hmac (file:///Users/$USER/Library/Caches/deno/npm/registry.npmjs.org/aws-sdk/2.1226.0/lib/util.js:436:30)
    at Object.getSigningKey (file:///Users/$USER/Library/Caches/deno/npm/registry.npmjs.org/aws-sdk/2.1226.0/lib/signers/v4_credentials.js:62:8)
    at V4.signature (file:///Users/$USER/Library/Caches/deno/npm/registry.npmjs.org/aws-sdk/2.1226.0/lib/signers/v4.js:98:36)
    at V4.authorization (file:///Users/$USER/Library/Caches/deno/npm/registry.npmjs.org/aws-sdk/2.1226.0/lib/signers/v4.js:93:36)
    at V4.addAuthorization (file:///Users/$USER/Library/Caches/deno/npm/registry.npmjs.org/aws-sdk/2.1226.0/lib/signers/v4.js:35:12)
    at file:///Users/$USER/Library/Caches/deno/npm/registry.npmjs.org/aws-sdk/2.1226.0/lib/event_listeners.js:299:20
    at finish (file:///Users/$USER/Library/Caches/deno/npm/registry.npmjs.org/aws-sdk/2.1226.0/lib/config.js:396:7)
@cjihrig
Copy link
Contributor
cjihrig commented Sep 30, 2022

This is being tracked in denoland/std#2557, so I'll close this out. Thanks for reporting though!

@cjihrig cjihrig closed this as completed Sep 30, 2022
@dsherret dsherret mentioned this issue Nov 15, 2022
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants