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

Connection.open crashes an app #340

Open
boris-gribkov opened this issue May 27, 2024 · 1 comment
Open

Connection.open crashes an app #340

boris-gribkov opened this issue May 27, 2024 · 1 comment

Comments

@boris-gribkov
Copy link

boris-gribkov commented May 27, 2024

I use localhost to run database. When I call

try{
    connection = await Connection.open(
      Endpoint(
        host: postgresHost,
        database: postgresName,
        username: postgresUser,
        password: postgresPassword,
        port: postgresPort,
      ),
      //settings: const ConnectionSettings(sslMode: SslMode.disable),
    );
} catch (error) {
   print(error)
}

I have an error Severity.error Server does not support SSL, but it was required.. I know, that I need to add settings (commented above), but if don't, it crashes an app in 1.5-2 minutes and I can't even catch the exception.
Unhandled exception: SocketException: Connection reset by peer (OS Error: Connection reset by peer, errno = 54), address = 127.0.0.1, port = 53342
Maybe like there is a bug with a completer, because I had a different error (Future completed twice) before I updated package version.

@isoos
Copy link
Owner

isoos commented Sep 15, 2024

@boris-gribkov: sorry, this got under the radar. Do you still see this issue? How did you resolve it?

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

2 participants