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달 전

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

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

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

관련 콘텐츠