Unable to write data to AWS RDS PostgreSQL database?

0

In my Django application, I'm utilizing AWS RDS PostgreSQL as my database backend. I've encountered an issue when attempting to send a POST request to store data in the database. After a period of loading, I receive a '502 Bad Gateway' error. Interestingly, I can successfully read data from the database.

I also have a mobile app and a separate front-end application developed in Vue.js. When making POST requests from the mobile app, all operations work flawlessly, except for the one related to OTP, which also gives a '502' error. Other CRUD operations from the app are functioning as expected. In addition, reading and writing data works properly from the Django admin panel and the dashboard, both of which are built in Django.

Within the front-end application, I can write data successfully, but I encounter a '502' error when attempting to write. This issue specifically occurs when I add CNAME of Application Load Balancer's DNS point to the domain. However, if I use an IP address in the A record to point to the domain, everything functions as expected.

What could be the source of this issue and how can it be resolved?

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions