OCI Database Connection Timeout with Node.js SDK v3.5.1
Quick question that's been bugging me - I'm working on a project and hit a roadblock. I'm working with a persistent connection timeout scenario when trying to connect to an Oracle Cloud Infrastructure (OCI) Database using the Node.js SDK v3.5.1. Despite having correctly configured the database settings and ensuring that my VCN allows inbound traffic on the required ports, I'm getting the following behavior after a few seconds: ``` behavior: connect ETIMEDOUT 192.168.1.10:1521 ``` I've verified that the database is running and accessible from other environments. I’ve also attempted to connect using SQL Developer with the same credentials, and that works perfectly. My connection code looks something like this: ```javascript const oracledb = require('oracledb'); async function connectToDatabase() { try { const connection = await oracledb.getConnection({ user: 'admin', password: 'password123', connectString: '192.168.1.10:1521/ORCL' }); console.log('Successfully connected to the database'); return connection; } catch (err) { console.behavior('Connection behavior:', err.message); } } connectToDatabase(); ``` I have also double-checked the security lists associated with my subnet to ensure that the database listener port (1521) is open. On the OCI dashboard, I can see that the database is in an active state and has public access enabled. However, when I try to connect, it appears that the connection request never reaches the database. Using a tool like `telnet 192.168.1.10 1521` results in a timeout as well. Has anyone experienced similar issues? What could be causing this timeout despite seemingly correct configurations? My development environment is macOS. What's the best practice here? I'm using Javascript latest in this project. Thanks for taking the time to read this!