Skip to content

Unrecognized or unimplemented EC curve "id-ecPublicKey" requested #66

Description

@king112ola

When trying to decode the notification payload in Cloudflare Workers using the following code:

const payload = await decodeNotificationPayload(signedPayload);

I encountered the following error:

Full error details: Object {
  name: NotSupportedError,
  message: Unrecognized or unimplemented EC curve "id-ecPublicKey" requested.,
  stack: NotSupportedError: Unrecognized or unimplemented E…rivate/.wrangler/tmp/dev-CUyrDx/index.js:4220:26)
}

After some research, I came across this GitHub issue, which describes a similar problem. According to a related update, the Cloudflare Workers maintainers have patched the issue. However, in my case, the problem still persists—even though I’ve enabled the nodejs_compat_v2 flag, which includes additional polyfills intended to resolve this error.

Is there any workaround? 🤔, or am I missing a step in the configuration?
Any help would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions