We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daa6658 commit 0754569Copy full SHA for 0754569
1 file changed
flow/shared/exceptions/mysql.go
@@ -72,8 +72,7 @@ func NewMySQLStreamingError(err error) *MySQLStreamingError {
72
return &MySQLStreamingError{err, true}
73
}
74
75
- var recordHeaderError tls.RecordHeaderError
76
- if errors.As(err, &recordHeaderError) {
+ if recordHeaderError, ok := errors.AsType[tls.RecordHeaderError](err); ok {
77
if recordHeaderError.Msg == "first record does not look like a TLS handshake" {
78
79
@@ -83,6 +82,10 @@ func NewMySQLStreamingError(err error) *MySQLStreamingError {
83
82
84
85
+ if strings.Contains(err.Error(), "handleAuthResult: ReadPacket: invalid sequence") {
86
+ return &MySQLStreamingError{err, true}
87
+ }
88
+
89
return &MySQLStreamingError{err, false}
90
91
0 commit comments