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?

Tanvir
已提问 7 个月前134 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则