Steven Kuck
05/24/2022, 8:17 PMprisma db pull --schema <our schema file with connection string> it connects and sees the database tables and works. When we try to start up the app (which runs fine against local copies of the database) with the same connection string we get error logs of
UnhandledPromiseRejectionWarning: Error: Can't reach database server at `<our.rds.instance>.<http://rds.amazonaws.com|rds.amazonaws.com>`:`3600`
This is the format of our connection string.
mysql://<user>:<pass>@<our.rds.instance>.<http://rds.amazonaws.com:3306/<database>?pool_timeout=10&connect_timeout=10&sslcert=<ourcert.pem|rds.amazonaws.com:3306/<database>?pool_timeout=10&connect_timeout=10&sslcert=<ourcert.pem>>
Could not having a public IP be causing a connection issue in the Rust code?
It's not even getting to the "Authentication failed" which is what happens if I leave off the sslcert when doing a db pull.Steven Kuck
05/24/2022, 8:19 PMSteven Kuck
05/24/2022, 8:20 PMJason Kleinberg
05/24/2022, 9:43 PMconst prisma = new PrismaClient({
datasources: {
db: { url: CONNECTION_STRING }
}
})Jason Kleinberg
05/24/2022, 9:59 PMNurul
05/25/2022, 10:34 AMJason Kleinberg
05/25/2022, 1:42 PMJason Kleinberg
05/25/2022, 2:06 PMJason Kleinberg
05/25/2022, 4:47 PMJason Kleinberg
05/25/2022, 4:47 PMNurul
05/26/2022, 10:23 AM