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?

gefragt vor 2 Monaten199 Aufrufe
2 Antworten
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
EXPERTE
beantwortet vor 2 Monaten
0

So I get this message for error:

Enter image description here

beantwortet vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen