-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
api gives "Internal Server Error" when creating a repo with "auto-init" set true #22934
Comments
Have updated the version above... |
Please paste your logs and if you can test v1.18.3, that's better. |
I can switch the repo to public using the update repo api, but would not have expected that to be necessary. |
I've no idea how to get at the logs, I do not have command level or file level access. We are looking at updating to 1.18.3. |
@brianread108 Maybe the error is caused by |
curl -X 'POST' |
I can reproduce on try when using At the very least a |
Yes. The
At present, if the specified readme template does not exist, a |
Confirming that setting the readme to "Default" works fine and the then auto-init does the job. Thanks for the help. |
Close #22934 In `/user/repos` API (and other APIs related to creating repos), user can specify a readme template for auto init. At present, if the specified template does not exist, a `500` will be returned . This PR improved the logic and will return a `400` instead of `500`.
Close go-gitea#22934 In `/user/repos` API (and other APIs related to creating repos), user can specify a readme template for auto init. At present, if the specified template does not exist, a `500` will be returned . This PR improved the logic and will return a `400` instead of `500`.
Close go-gitea#22934 In `/user/repos` API (and other APIs related to creating repos), user can specify a readme template for auto init. At present, if the specified template does not exist, a `500` will be returned . This PR improved the logic and will return a `400` instead of `500`.
Backport #23387 Close #22934 In `/user/repos` API (and other APIs related to creating repos), user can specify a readme template for auto init. At present, if the specified template does not exist, a `500` will be returned . This PR improved the logic and will return a `400` instead of `500`. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Description
Using the swagger “Try it out” interface. I keep getting an “505 Internal Server Error” when I try and access /api/v1/user/repos, and use these parameters:
“auto_init”: true,
“default_branch”: “master”,
“description”: “a descr”,
“gitignores”: “”,
“issue_labels”: “”,
“license”: “”,
“name”: “testrepo”,
“private”: false,
“readme”: “Hello World”,
“template”: false,
“trust_model”: “default”
Seems to be the Private parameter. “true” works and “false” gives an internal Server error.
… .and also “auto_init” true gives me the Internal Server Error.
This is our own install of gitea, I can't currently see where on the web interface I can see the version number. I've asked the installer to let me have those details
Gitea Version
1.17.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.31.1
Operating System
Centos 8 (EL8)
How are you running Gitea?
Under proxmox in a Centos 8 VM
I am guessing MYSQL is in use
Database
MySQL
The text was updated successfully, but these errors were encountered: