Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Re)connect to a number of rooms exceeding the 512 byte message size restriction #284

Open
e-luks opened this issue Apr 26, 2024 · 0 comments

Comments

@e-luks
Copy link

e-luks commented Apr 26, 2024

After sequentially joining some rooms and restarting the docker container of heisenbridge, i received the following error:

Apr 24 19:06:31 systemd[1075]: Started heisenbridge container.
Apr 24 19:06:31 heisenbridge[13599]: ded205e52d02ea0d36c4304c45af787979581206711aec0caa241c96bd5bc328
Apr 24 19:06:36 heisenbridge[13608]: Heisenbridge v0.0.0
Apr 24 19:06:36 heisenbridge[13608]: Fetching joined rooms...
Apr 24 19:06:36 heisenbridge[13608]: Bridge is in 43 rooms, initializing them...
Apr 24 19:06:39 heisenbridge[13608]: All valid rooms initialized, connecting network rooms...
Apr 24 19:06:39 heisenbridge[13608]: Init done with 2 networks connecting, bridge is now running!
Apr 24 19:06:45 heisenbridge[13608]: ERROR:root:Failed to flush IRC queue
Apr 24 19:06:45 heisenbridge[13608]: Traceback (most recent call last):
Apr 24 19:06:45 heisenbridge[13608]:   File "/opt/heisenbridge/heisenbridge/irc.py", line 202, in _run
Apr 24 19:06:45 heisenbridge[13608]:     super().send_raw(string)
Apr 24 19:06:45 heisenbridge[13608]:   File "/usr/lib/python3.10/site-packages/irc/client_aio.py", line 197, in send_raw
Apr 24 19:06:45 heisenbridge[13608]:     self.transport.write(self._prep_message(string))
Apr 24 19:06:45 heisenbridge[13608]:   File "/usr/lib/python3.10/site-packages/irc/client.py", line 658, in _prep_message
Apr 24 19:06:45 heisenbridge[13608]:     raise MessageTooLong(msg)
Apr 24 19:06:45 heisenbridge[13608]: irc.client.MessageTooLong: Messages limited to 512 bytes including CR/LF

I increased/decreased the string length of the join message by one byte, after which it was clear that the JOIN command was too long to be handled by the IRC server.

I have a first version running in #283 which enables me to join 57 channels on the libera chat network by splitting the amount of channels to join so that each join command itself succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant