N
Novu3w ago
Mime

Can't trigger workflow on production

Hi! I have a error when triggering a notification in Novu. Could not connect to your dev server. Make sure you are running the npx novu@latest dev command but I am in production and Activity Feed I am viewing this is in production tab. When I change the url to https://<site url>/api/novu it returns this error: The provided URL is not the Novu Endpoint URL
27 Replies
Mime
Mime3w ago
I am using a nginx reverse proxy with a nextjs server
Pawan Jain
Pawan Jain3w ago
@Mime Are you facing issue in triggering the @novu/framework based workflow in the production environment?
Mime
Mime3w ago
Yes Is there a additional step for going to production ?
Pawan Jain
Pawan Jain3w ago
Did you sync the changes already? Do you see that workflow in production environment?
Mime
Mime3w ago
Yes
Pawan Jain
Pawan Jain3w ago
Hey Mime just DMed you for more info
Mime
Mime3w ago
Where? I don't see it.
Pawan Jain
Pawan Jain3w ago
Looks like you have privacy tunred on. Can you add me as a friend?
Mime
Mime3w ago
Yes. Sended an invite
Pawan Jain
Pawan Jain3w ago
@Mime A small update on this. we have added more logging capabilities to debug your issue https://github.com/novuhq/novu/pull/6643 I will keep you updated once the issue is fixed
Mime
Mime3w ago
Thanks!
Sokratis Vidros
@Mime we noticed a 403 error coming from https://mimedev.fr/api/novu. Accessing it locally from my laptop via the Novu API, or via curl works. Are you maybe using Nginx or another proxy that might block AWS access or any HTTP headers?
Mime
Mime2w ago
I have nginx
Sokratis Vidros
Do you see any rules in the nginx.conf that might return a 403?
Mime
Mime2w ago
No.
Novu_Bot
Novu_Bot2w ago
@Mime, you just advanced to level 5!
Mime
Mime2w ago
I use cloudflare if that can help
Sokratis Vidros
Is your setup is Cloudflare -> Nginx -> Application server? Do you see the 403 requests on your end in the logs? If yes, can you please share the http request and response headers? @Mime ☝️
Novu_Bot
Novu_Bot2w ago
@Sokratis Vidros, you just advanced to level 1!
Mime
Mime2w ago
Yes Will check tomorrow
Sokratis Vidros
Thanks
Mime
Mime2w ago
Hello sorry for the late, but when I enter the url and click update on my log it doesn't show anything
Sokratis Vidros
What kind of logs are you looking at? Are you looking at Cloudflare logs, Nginx logs or application server logs?
Mime
Mime7d ago
Nginx logs
Sokratis Vidros
Please try setting the bridge URL in the UL again and check Cloudflare logs. If there is no entry in the Nginx logs my hypothesis is that the 403 comes from Cloudflare. If you are using Cloudflare WAF, it might be blocking direct access from our AWS servers running the Novu Cloud API.
Mime
Mime5d ago
I'm checking Cloudflare is blocking the request by Bot Fight mode I just added Novu to the whitelist and it's now working ! Thank you.
Sokratis Vidros
Sokratis Vidros22h ago
I am glad we sort it out. Have a nice day.
Want results from more Discord servers?
Add your server