N
Novu3mo ago
mime4x

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