Effing.Bombast
Effing.Bombast
RRailway
Created by Effing.Bombast on 2/16/2024 in #✋|help
Vapor (Swift) Postgres connection failure
I have a Swift Vapor project that I'm trying to set up on Railway. I've tried to connect using both DATABASE_PRIVATE_URL and DATABASE_URL, but both are failing at the deploy stage with SSL handshake errors.
[ ERROR ] Opening new connection for pool failed: PSQLError(code: connectionError, underlying: NIOSSL.NIOSSLError.handshakeFailed(NIOSSL.BoringSSLError.sslError([Error: 268435581 error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED at /build/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/handshake.cc:393]))) [database-id: psql]
[ ERROR ] Opening new connection for pool failed: PSQLError(code: connectionError, underlying: NIOSSL.NIOSSLError.handshakeFailed(NIOSSL.BoringSSLError.sslError([Error: 268435581 error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED at /build/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/handshake.cc:393]))) [database-id: psql]
The project is working on Heroku, but I'd hoped to migrate over to Railway. Is there some other config that I've missed? 969baf4b-c7d4-413b-bcc3-c69b178b8450
21 replies