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

Unrecgnized algorithm name when trying to validate request #18

Open
roziscoding opened this issue Sep 17, 2023 · 0 comments
Open

Unrecgnized algorithm name when trying to validate request #18

roziscoding opened this issue Sep 17, 2023 · 0 comments

Comments

@roziscoding
Copy link

I followed the README guide up to the point where it asks me to set my interactions URL.
After that, I get the following error:

POST / 500 Internal Server Error (67.67ms)
[mf:err] POST /: NotSupportedError: Unrecognized name.
    at new DOMException (node:internal/per_context/domexception:53:5)
    at __node_internal_ (node:internal/util:505:10)
    at normalizeAlgorithm (node:internal/crypto/util:212:15)
    at SubtleCrypto.importKey (node:internal/crypto/webcrypto:526:15)
    at validateInteraction (/home/roziscoding/github/Formacao-Typescript/discord-bot-cfw/node_modules/slshx/src/interactions/validate.ts:20:41)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Object.fetch (/home/roziscoding/github/Formacao-Typescript/discord-bot-cfw/node_modules/slshx/src/index.ts:58:17)
    at EventTarget.[kDispatchFetch] (/home/roziscoding/github/Formacao-Typescript/discord-bot-cfw/node_modules/@miniflare/core/src/standards/event.ts:359:13)
    at Server.<anonymous> (/home/roziscoding/github/Formacao-Typescript/discord-bot-cfw/node_modules/@miniflare/http-server/src/index.ts:290:20)

I'm running on a fresh install of endeavor OS, and I've tried node 20.6.1, 18.17.1 and 16.20.2. None of them worked. I've googled a bit and found out that the specified algorithm was removed on version 1.16.17.

Is there any reason for the library to keep using such an outdated algorithm when ED25519 is officially supported by the latest Node.js version?

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

1 participant