Open
Description
Following the example code of
import 'package:postgres/postgres.dart';
void main() async {
print('Hello World!');
var connection = new PostgreSQLConnection("127.0.0.1", 5432, "xxx",
username: "xx", password: "xxx");
await connection.open();
}
produces the error
PostgreSQLSeverity.error : Unsupported authentication type 3, closing connection.
I verified that the connection parameters work by using the same with psql
on this database.
The full stack trace is
Unhandled exception:
PostgreSQLSeverity.error : Unsupported authentication type 3, closing connection.
#0 PostgreSQLConnection.open (package:postgres/src/connection.dart:154:7)
<asynchronous suspension>
#1 main (file:///Users/philm/Documents/projects/dart_sql/main.dart:25:20)
#2 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:307:19)
#3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
Metadata
Metadata
Assignees
Labels
No labels