You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a wrong username we shouldn't even enter the sasl handshake dance. The Postgres server rejects the startup message right away.
@chainray01 Which Postgres version do you use? Which PostgresNIO version do you use? What is the username and password that you use? (Please change it after disclosing it here, but I need it to repro your crash I'm afraid.)
Describe the issue
When entering an invalid username, the application crashes with the following error: Fatal error: Range requires lowerBound <= upperBound.
Vapor version
2.13.5
Operating system and version
macos 13.7.6
Swift version
Swift Package Manager - Swift 5.9.0
Steps to reproduce
1.Enter an invalid username
2. run code
do { _ = try await pool.withConnection { conn in conn.simpleQuery("SELECT 1") }.get() } catch { throw error }
Outcome
App crashes
Swift/arm64e-apple-macos.swiftinterface:5830: Fatal error: Range requires lowerBound <= upperBound
Additional notes
No response
The text was updated successfully, but these errors were encountered: