postgresql-dart icon indicating copy to clipboard operation
postgresql-dart copied to clipboard

PostgreSQLSeverity.error : Unsupported authentication type 10, closing connection.

Open arbazadam opened this issue 3 years ago • 0 comments

I get this exception when i try to connect to postgres server with a dart server app. Interestingly a simple console based app works without any exception, upon doing some research the maintainer of this repo has said that ""Postgres 13 gets scram-sha-256 as the default password_encryption value, and the current Dart library supports only md5"" Reference to the above: https://githubhot.com/repo/stablekernel/postgresql-dart/issues/145

I am curious to know that why only it fails for an app created using the shelf template whereas the other console app just works fine. I thought that this might be happening due to environment variable issues but i even tried hardcoding my db configurations still no luck. Here is the screenshot of what my code looks like and the exception. postgre-dart-error

arbazadam avatar Apr 12 '22 04:04 arbazadam