qaisjp / go-discord-irc

The Discord and IRC bridge with puppets! An IRC user is created for each Discord user, messages from IRC seamlessly appear on Discord, and Discord mentions are automagically converted to and from IRC.
MIT License
113 stars 32 forks source link

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

Open petermolnar opened 2 years ago

petermolnar commented 2 years ago

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.