Repository migrate has internal server error but no message to indicate the problem #552

Open
opened 7 months ago by kamandroid · 2 comments

#1. Not sure if bitbucket is supported

#2. Here is the postman (btw removed the sensitive info)

POST http://localhost:3000/api/v1/repos/migrate
500
10.57 s
POST /api/v1/repos/migrate HTTP/1.1
Authorization: Basic Z3Jhdml0eTpiRHl5eFFOTVpSVEVTZlJtQ3dnNQ==
Content-Type: application/json
User-Agent: PostmanRuntime/7.28.4
Accept: */*
Cache-Control: no-cache
Postman-Token: 9256e874-2aa9-44c7-8289-56f0ce2c5d2c
Host: localhost:3000
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 570
Cookie: _csrf=QDXBbU51eDKkMaMZHDKcFHfvE7Q6MTYzNTk3MDYyOTMzNTc1MzMzOQ; i_like_gitea=be9e51dee782ae7b
 
{
"repo_name": "MyFirstRepo",
"repo_owner": "kam",
"uid": 0,
"clone_addr": "mygitcloneaddress",
"service": "git",
"auth_username": "myusername",
"auth_password": "mypassword",
"auth_token": "",
"mirror": false,
"private": true,
"description": "This is my first repo",
"wiki": false,
"milestones": false,
"labels": true,
"issues": true,
"pull_requests": false,
"releases": true,
"mirror_interval": "",
"lfs": false,
"lfs_endpoint": ""
}
HTTP/1.1 500 Internal Server Error
Content-Type: application/json;charset=utf-8
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Date: Wed, 03 Nov 2021 20:19:06 GMT
Content-Length: 58
 
{"message":"","url":"http://gitea-http:3000/api/swagger"}
#1. Not sure if bitbucket is supported #2. Here is the postman (btw removed the sensitive info) ``` POST http://localhost:3000/api/v1/repos/migrate 500 10.57 s POST /api/v1/repos/migrate HTTP/1.1 Authorization: Basic Z3Jhdml0eTpiRHl5eFFOTVpSVEVTZlJtQ3dnNQ== Content-Type: application/json User-Agent: PostmanRuntime/7.28.4 Accept: */* Cache-Control: no-cache Postman-Token: 9256e874-2aa9-44c7-8289-56f0ce2c5d2c Host: localhost:3000 Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Length: 570 Cookie: _csrf=QDXBbU51eDKkMaMZHDKcFHfvE7Q6MTYzNTk3MDYyOTMzNTc1MzMzOQ; i_like_gitea=be9e51dee782ae7b { "repo_name": "MyFirstRepo", "repo_owner": "kam", "uid": 0, "clone_addr": "mygitcloneaddress", "service": "git", "auth_username": "myusername", "auth_password": "mypassword", "auth_token": "", "mirror": false, "private": true, "description": "This is my first repo", "wiki": false, "milestones": false, "labels": true, "issues": true, "pull_requests": false, "releases": true, "mirror_interval": "", "lfs": false, "lfs_endpoint": "" } ``` ``` HTTP/1.1 500 Internal Server Error Content-Type: application/json;charset=utf-8 X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN Date: Wed, 03 Nov 2021 20:19:06 GMT Content-Length: 58 {"message":"","url":"http://gitea-http:3000/api/swagger"} ```
Poster

After playing around with the pay load it appears that the internal server error 500 and no message on cause occurs if any of these value are set to true

"labels": true
"issues": true
"releases": true

So workaround is not bother setting those values

After playing around with the pay load it appears that the internal server error 500 and no message on cause occurs if any of these value are set to true "labels": true "issues": true "releases": true So workaround is not bother setting those values
Owner

Hm, It should be a bug of Gitea. When you migrate from a pure git service, all those are not supported.

Hm, It should be a bug of Gitea. When you migrate from a pure git service, all those are not supported.
lunny added the
upstream/gitea
label 7 months ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Loading…
There is no content yet.