N
Novu2mo 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
MimeOP2mo ago
I am using a nginx reverse proxy with a nextjs server
Pawan Jain
Pawan Jain2mo ago
@Mime Are you facing issue in triggering the @novu/framework based workflow in the production environment?
Mime
MimeOP2mo ago
Yes Is there a additional step for going to production ?
Pawan Jain
Pawan Jain2mo ago
Did you sync the changes already? Do you see that workflow in production environment?
Mime
MimeOP2mo ago
Yes
Pawan Jain
Pawan Jain2mo ago
Hey Mime just DMed you for more info
Mime
MimeOP2mo ago
Where? I don't see it.
Pawan Jain
Pawan Jain2mo ago
Looks like you have privacy tunred on. Can you add me as a friend?
Mime
MimeOP2mo ago
Yes. Sended an invite
Pawan Jain
Pawan Jain2mo 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
MimeOP2mo ago
Thanks!
Sokratis Vidros
Sokratis Vidros2mo ago
@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
MimeOP2mo ago
I have nginx
Sokratis Vidros
Sokratis Vidros2mo ago
Do you see any rules in the nginx.conf that might return a 403?
Mime
MimeOP2mo ago
No.
Novu_Bot
Novu_Bot2mo ago
@Mime, you just advanced to level 5!
Mime
MimeOP2mo ago
I use cloudflare if that can help
Sokratis Vidros
Sokratis Vidros2mo ago
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_Bot2mo ago
@Sokratis Vidros, you just advanced to level 1!
Mime
MimeOP2mo ago
Yes Will check tomorrow
Sokratis Vidros
Sokratis Vidros2mo ago
Thanks
Mime
MimeOP2mo 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
Sokratis Vidros2mo ago
What kind of logs are you looking at? Are you looking at Cloudflare logs, Nginx logs or application server logs?
Mime
MimeOP2mo ago
Nginx logs
Sokratis Vidros
Sokratis Vidros2mo ago
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
MimeOP2mo 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 Vidros2mo ago
I am glad we sort it out. Have a nice day.
Want results from more Discord servers?
Add your server