-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[Account Linking] Error 500 Post Account Linking Due To original_author_id BigInt Size Limitation #31427
Comments
PR for the same: |
wxiaoguang
pushed a commit
that referenced
this issue
Jun 20, 2024
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Jun 20, 2024
DennisRasey
pushed a commit
to DennisRasey/forgejo
that referenced
this issue
Jun 25, 2024
Fix go-gitea/gitea#31427 (cherry picked from commit 17b3a38577d6e1d50ba5565ca3b1f2f57a04bf32)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Error: UserLinkAccount, pq: value is out of range for type bigint
When using Google OAuth, the UserID returned can be quite large, such as 1108672xxx5299468800. This value exceeds the limit of BigInt, leading to a 500 server error when processing it in the UpdateMigrationsByType function. This issue primarily arises from the following code snippet:
To resolve this, the column must be updated from BigInt to numeric. Here are the SQL commands to achieve this:
Gitea Version
v1.22
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
2.39.3
Screenshots
No response
Git Version
No response
Operating System
Ubuntu
How are you running Gitea?
Built using source
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: