Error 1406: Data too long for column 'payload_content' #8938

Closed
opened 2025-11-02 08:23:39 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @pboguslawski on GitHub (May 11, 2022).

Description

Noticed one occurrence of error

2022/05/09 11:20:49 ...n/webhook/webhook.go:587:NotifyPushCommits() [E] PrepareWebhooks: CreateHookTask: Error 1406: Data too long for column 'payload_content' at row 1

in gitea log.

Gitea Version

1.16.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.30.2

Operating System

Debian

How are you running Gitea?

Gitea build from sources using go 1.17.9.

Database

MySQL

Originally created by @pboguslawski on GitHub (May 11, 2022). ### Description Noticed one occurrence of error ``` 2022/05/09 11:20:49 ...n/webhook/webhook.go:587:NotifyPushCommits() [E] PrepareWebhooks: CreateHookTask: Error 1406: Data too long for column 'payload_content' at row 1 ``` in gitea log. ### Gitea Version 1.16.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 2.30.2 ### Operating System Debian ### How are you running Gitea? Gitea build from sources using go 1.17.9. ### Database MySQL
GiteaMirror added the type/bug label 2025-11-02 08:23:39 -06:00
Author
Owner

@wxiaoguang commented on GitHub (May 12, 2022):

Similar to this one:

MySQL's TEXT can only hold 64K string. It should be altered to LONGTEXT if you have a lot of data.

@wxiaoguang commented on GitHub (May 12, 2022): Similar to this one: * https://github.com/go-gitea/gitea/issues/16656 * https://github.com/go-gitea/gitea/pull/16765 MySQL's TEXT can only hold 64K string. It should be altered to LONGTEXT if you have a lot of data.
Author
Owner

@42wim commented on GitHub (Jun 19, 2022):

Fixed in #20038

@42wim commented on GitHub (Jun 19, 2022): Fixed in #20038
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8938