Problem with webhooks

Hi,

after a push with many files or commits we get this error:

“webhook.go:582:NotifyPushCommits() [E] PrepareWebhooks: CreateHookTask: Error 1406: Data too long for column ‘payload_content’ at row 1”

The webhook cannot be written to the database because the payload is too large (over 97.000 chars).

  • Is there any way to reduce the payload. For example, we do not need all the modified files in the webhook.
  • Does the problem with the 65,535 character limit exist only in MariaDB?

Thanks for your help.

Chris

The following SQL-statment against the Gitea-Database solved this problem for us.

ALTER TABLE hook_task MODIFY payload_content MEDIUMTEXT;

Default type was TEXT.

1 Like