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!
When trying to decode the notification payload in Cloudflare Workers using the following code:
const payload = await decodeNotificationPayload(signedPayload);I encountered the following error:
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!