MySQL: Received an unexpected EOF or 0 bytes from the transport stream

0

My application to connect to MySQL throws this error intermittently. Unfortunately I only have access to logs. To me it seems like a certificate related problem but I do not know what is causing the error or how I can approach the issue to fix it.

Any suggestion on what would cause this error to be thrown?

 MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during data read. --->
 MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. ---> 
System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream. 
       at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
       at System.Net.Security._SslStream.StartFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslStream.Read(Byte[] buffer, Int32 offset, Int32 count)
       at MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
       at MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count)
       at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
       at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
       at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
       at MySql.Data.MySqlClient.NativeDriver.FetchDataRow(Int32 statementId, Int32 columns)
       at MySql.Data.MySqlClient.ResultSet.GetNextRow()
       at MySql.Data.MySqlClient.ResultSet.NextRow(CommandBehavior behavior)
       at MySql.Data.MySqlClient.MySqlDataReader.Read()
mysql
.net
ssl
ioexception
transport-stream
asked on Stack Overflow Dec 20, 2019 by david

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0