PostgresConnection.authenticate responds with uncleanShutdown
error when wrong credentials are passed
#160
Labels
bug
Something isn't working
Describe the bug
When I mess up my credentials and try to send a random gibberish as a password, the error I get in return is obscure and not very helpful. I would expect
PostgresConnection.authenticate
to fail with a clean auth failed error, but I getPostgresError.protocol("Unexpected connection close")
instead.To Reproduce
PostgresConnection.connect().authenticate()
using a random gibberish for the passwordExpected behavior
I'd expect a clean
auth failed
error.Environment
vapor 4.45.2
postgres-nio 1.5.2
The text was updated successfully, but these errors were encountered: