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?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠