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

Option to not include webhook_data to reduce message size #1003

Open
moorglade opened this issue Dec 23, 2024 · 0 comments · May be fixed by #1004
Open

Option to not include webhook_data to reduce message size #1003

moorglade opened this issue Dec 23, 2024 · 0 comments · May be fixed by #1004

Comments

@moorglade
Copy link

moorglade commented Dec 23, 2024

I use Matrix Hookshot for processing alert notifications from Alertmanager. Such notifications can sometimes get pretty large (over 64kB). In such cases, sending a message through Hookshot fails with the following error:

{ errcode: 'M_TOO_LARGE', error: 'event too large' }

I prepared a JS transformation function which reduces the message size, but this does not help. I guess this is because Hookshot attaches the original message to the request body in the uk.half-shot.hookshot.webhook_data field.

An option to not include uk.half-shot.hookshot.webhook_data in the request sent to Matrix would be very helpful in my use case. Or maybe there is some other way of handling large messages?

Possibly related to #613

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