Skip to content

Webhook notifications to matrix rooms fail if the rejected event was at or close to the max event size #114

@ll-SKY-ll

Description

@ll-SKY-ll

I am a...

Policyserv operator with logs to help fix a bug

Description

When a event gets rejected by the volumetric filter, the following webhook notification fails to be sent by the webhook bot because the additional text from the notification + the original rejected message exceeds the max event size.

the original event body should be truncated at max event size - whatever feels enough for the additional data

Steps to reproduce

  • send really really large spam message close or at the max event size limit

Installation Method

Other (please mention below)

Homeserver

codestorm.net

Policyserv Server Name

N/A

Policyserv Version

N/A

Affected Filters

/

Relevant log output

[policyserv] 2026/03/21 22:30:08.032233 queue.go:73: [$XsVByrPHWodui5Xhj9cXjuiKaL8v8ym2Og9q5OjJOkI] Audit webhook response: 500 Internal Server Error

Anything else that would be useful to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions