API connection to RDS from self-hosted server

0

Hello,

So I am currently working on a game REST API (node.js)and would like to know why does error with "Error retrieving data from database" appear and how can i fix it? I made research and tried reducing firewall rules, as it might be a problem and nothing happened. I also thought it might be firewall at AWS RDS but I also tried reducing the rules and it still apears. Postman image

Code

If anyone have any idea how i could fix this without using AWS Lambda please let me know.

edit: also as i searched the postman error it apears to be code 500 internal server error

  • Did you allow security group inbound access for your IP? Also can what did you get in err string?

已提問 2 個月前檢視次數 199 次
2 個答案
0

What does console error print out?

If your app and database are in same vpc, then rule out security groups by bring permissive temporarily or just using vpc reachability analyser tool: https://docs.aws.amazon.com/vpc/latest/reachability/what-is-reachability-analyzer.html.

If they are in separate boxes, you may need an interface vpc endpoint https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/vpc-interface-endpoints.html

profile picture
專家
已回答 2 個月前
0

So I get this message for error:

Enter image description here

已回答 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南