Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arbazadam opened this issue Apr 12, 2022 · 0 comments

Comments

@arbazadam
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant