Error trying to sync to cloud (code based workflow)
Ive made an
ExpressJS
api and ive setup an endpoint /novu
. Ive publish my app on subdomain.mydomain.com
but when I try to sync manually with subdomain.mydomain.com/novu
my logs :
12 Replies
@loup
Can you share
@novu/framework
version?Im using this one
"@novu/framework": "^2.4.0",
Thanks @loup , could you please also share which Node version you are using?
v23.1.0
Wait its my local version I should test on my VPS
Yes, the deployed Bridge Node version will be great thanks.
I suspect we may need to add a polyfill for
crypto
in older Node versions.node -v
v18.20.2
Im using Coolify btw for hosting my express api (idk if it change something)
Got it, thanks. The
crypto
global is only available with Node 20+, are you able to upgrade your Node version to solve in the meantime?
We will look at adding a polyfill for older versionsokay I need to make a custom Dockerfile (I was using nixpack), Im gonna check that thx a lot !
Perfect! As a heads up, Node 18 reaches end of life on 30 April 2025, so it's generally a good idea to update.
GitHub
🐛 Bug Report: Node <18 - `Unknown BridgeError: crypto is not define...
📜 Description When using Node 18 that doesn't contain the global crypto WebCrypto API, Framework 2.4.0 fails to be invoked with strictAuthentication: true during the HMAC validation. [Error]: U...
its working with node 22. Im facing to another issue :
I was thinkg novu framework automatically handle the signature header, docs :
@loup are you using the EU or US cloud deployment of novu?
Also, please verify that you have a proper NOVU_SECRET_KEY defined in your environment