Skip to content

### MySqlConnector ### Couldn't connect to server #1003

@ttosic92

Description

@ttosic92

On project upgrade from 3.1.1 .NET Core version to .NET 5.0 MySqlConnector driver keeps throwing
"### MySqlConnector ### Couldn't connect to server. More information - Cannot determine the frame size or a corrupted frame was received.". But mind boggling thing was the fact that driver worked when ran from Visual Studio 19.0 but didn't work from docker container.

Base image is .NET5 is 5.0-alpine.

First i thought connection strings are wrong or maybe grants to DB but those generate different kind of exception. I checked connection strings inside container and everything matches. Tried both 1.3.1 and 1.3.9 version of MySqlConnector and same exception happens.

Thought maybe reverse proxy SSL is issue on server (Debian 10.0) but when i used curl from local network i got same error.
Also tried to host container from WSL, same issue persisted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions