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

[WARNING] MySqlConnection: Error sending quit on connection Bad state: Cannot write to socket, it is closed #0 #54

Open
luX0r-reload opened this issue Jun 27, 2020 · 2 comments

Comments

@luX0r-reload
Copy link

Hi. I'm trying to call a simple stored procedure:

Future<List<User>> getUsers() async {
    final conn = await MySqlConnection.connect(Config.dbConnectionSettings);

    const query = "CALL `getUsers`();";

    final results = await conn.query(query);
    final List<User> users = [];
    for (var row in results) {
      users.add(User.fromRow(row));
    }
    await conn.close();
    return users;
  }

It works but bring up a WARNING:

[WARNING] MySqlConnection: Error sending quit on connection Bad state: Cannot write to socket, it is closed #0 BufferedSocket.writeBufferPart (package:mysql1/src/buffered_socket.dart:119:7)

This warning only appears if stored procedure is used.

Any suggest to avoid it?

Thanks

@luX0r-reload
Copy link
Author

Anybody?

@Fraa-124
Copy link

@luX0r-reload have you resolved this issue? I'm struggling with this one

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