502 bad Gateway Error in MERN Project

Hello, I’m working on a MERN stack project; it’s a simple landing page. There’s a form on it that the user can fill out, and then we will receive it in our database. My code was working fine in localhost, but after I deployed it on your website, when I tried to make a ‘POST’ API call (fill out the form as a user), I got a 502 Bad Gateway error. I’ve tried many solutions, but nothing has happened. I’m in an embarrassing situation because the client needs the landing page as quickly as possible.
here’s my website: https://lvw.onrender.com/
And here’s the error:

here’s my cors:

here’s my Environment variables:

HI,

A good place to start may be your service logs, do they show anything erroring?

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.