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

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

Closed
pboguslawski opened this issue May 11, 2022 · 2 comments
Closed

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

pboguslawski opened this issue May 11, 2022 · 2 comments
Labels

Comments

@pboguslawski
Copy link
Contributor

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

@wxiaoguang
Copy link
Contributor

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.

zeripath pushed a commit that referenced this issue Jun 19, 2022
Mysql TEXT has a limit of 64KB, change this to LONGTEXT in mysql only so we can have bigger hook payloads.

Postgresql has unlimited TEXT - https://www.postgresql.org/docs/current/datatype-character.html
Sqlite has unlimited TEXT - https://www.sqlitetutorial.net/sqlite-data-types/#:~:text=The%20maximum%20length%20of%20TEXT,SQLite%20supports%20various%20character%20encodings.

Same issue as #16656 but for hook_task

Fixes #10252, #19679, #3561
@42wim
Copy link
Member

42wim commented Jun 19, 2022

Fixed in #20038

@42wim 42wim closed this as completed Jun 19, 2022
vsysoev pushed a commit to IntegraSDL/gitea that referenced this issue Aug 10, 2022
Mysql TEXT has a limit of 64KB, change this to LONGTEXT in mysql only so we can have bigger hook payloads.

Postgresql has unlimited TEXT - https://www.postgresql.org/docs/current/datatype-character.html
Sqlite has unlimited TEXT - https://www.sqlitetutorial.net/sqlite-data-types/#:~:text=The%20maximum%20length%20of%20TEXT,SQLite%20supports%20various%20character%20encodings.

Same issue as go-gitea#16656 but for hook_task

Fixes go-gitea#10252, go-gitea#19679, go-gitea#3561
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this issue Aug 24, 2022
Mysql TEXT has a limit of 64KB, change this to LONGTEXT in mysql only so we can have bigger hook payloads.

Postgresql has unlimited TEXT - https://www.postgresql.org/docs/current/datatype-character.html
Sqlite has unlimited TEXT - https://www.sqlitetutorial.net/sqlite-data-types/#:~:text=The%20maximum%20length%20of%20TEXT,SQLite%20supports%20various%20character%20encodings.

Same issue as go-gitea#16656 but for hook_task

Fixes go-gitea#10252, go-gitea#19679, go-gitea#3561
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants