qaisjp/go-discord-irc

bug: tls: first record does not look like a TLS handshake

petermolnar opened this issue · 0 comments

Hi all,

Recently I started getting a lot of the following or similar logs:

Apr  9 09:29:17 alia discord[94845]: 2022/04/09 09:29:17 Connected to irc.eu.libera.chat:7070 (82.96.96.60:7070)
Apr  9 09:29:17 alia discord[94845]: time="2022-04-09T09:29:17+01:00" level=error msg="error opening irc connection" error="error opening irc connection: tls: first record does not look like a TLS handshake"
Apr  9 09:29:18 alia discord[94845]: time="2022-04-09T09:29:18+01:00" level=error msg="error opening irc connection" error="error opening irc connection: tls: first record does not look like a TLS handshake"
Apr  9 09:29:22 alia discord[94845]: 2022/04/09 09:29:22 Error, disconnected: EOF
Apr  9 09:29:22 alia discord[94845]: 2022/04/09 09:29:22 Error while reconnecting: tls: first record does not look like a TLS handshake

The end result is that the IRC -> Discord direction is working fine, but the Discord -> IRC is either spotty or missing for certain users. I got in touch with libera.chat support, there is no connection limit issue with this service.

I'd love to debug this deeper, but turning on debug and debug-presence didn't yield any more details.