-
-
Notifications
You must be signed in to change notification settings - Fork 298
Open
Labels
Pending ReproA repro is pending in order to replicate the issueA repro is pending in order to replicate the issue
Description
Having this error when receiving a webhook:
CryptoProviderOnlySupportsAsyncError: SubtleCryptoProvider cannot be used in a synchronous context.
Use `await constructEventAsync(...)` instead of `constructEvent(...)`
at computeHMACSignature (/app/node_modules/stripe/cjs/crypto/SubtleCryptoProvider.js:20:39)
at verifyHeader (/app/node_modules/stripe/cjs/Webhooks.js:69:54)
at constructEvent (/app/node_modules/stripe/cjs/Webhooks.js:15:32)
at handleWebhook (/app/node_modules/@golevelup/nestjs-stripe/lib/stripe.webhook.controller.js:37:49)
at processTicksAndRejections (native:7:39)
Context
It happens in the bun 1.3.9 runtime in production.
It does not happen in the node 25 runtime.
{
"@golevelup/nestjs-stripe": "1.2.0",
"stripe": "20.3.1",
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Pending ReproA repro is pending in order to replicate the issueA repro is pending in order to replicate the issue