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 URL27 Replies
I am using a nginx reverse proxy with a nextjs server
@Mime
Are you facing issue in triggering the
@novu/framework
based workflow in the production environment?Yes
Is there a additional step for going to production ?
Did you sync the changes already? Do you see that workflow in production environment?
Yes
Hey Mime just DMed you for more info
Where? I don't see it.
Looks like you have privacy tunred on. Can you add me as a friend?
Yes. Sended an invite
@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
Thanks!
@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?I have nginx
Do you see any rules in the nginx.conf that might return a 403?
No.
@Mime, you just advanced to level 5!
I use cloudflare if that can help
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 ☝️
@Sokratis Vidros, you just advanced to level 1!
Yes
Will check tomorrow
Thanks
Hello sorry for the late, but when I enter the url and click update on my log it doesn't show anything
What kind of logs are you looking at? Are you looking at Cloudflare logs, Nginx logs or application server logs?
Nginx logs
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.
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.
I am glad we sort it out. Have a nice day.