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?

posta 2 mesi fa199 visualizzazioni
2 Risposte
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
ESPERTO
con risposta 2 mesi fa
0

So I get this message for error:

Enter image description here

con risposta 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande