Closed
Description
Description
Steps to reproduce in the instance that we have running.
- Start with version 1.16.9.
- Change docker-compose file to point to 1.18.3
- Start server (docker-compose up).
- Go to personal repo and fork.
- Change readme in the repo and commit on separate branch (patch-1)
- Request pull request.
- Error 500.
we saw the same issue earlier going from 1.16.9 to 1.17.3 and tried to figure out if it was someting in our configuration. But now we can repeat this consistently.
The error does not occur in the curren gitea demo instance.
Gitea Version
1.18.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/cthed2/95e54a7d76721831838638de6131f747
Screenshots
Git Version
2.38.1
Operating System
Ubuntu 22.04
How are you running Gitea?
Running from docker
Database
SQLite
Activity
techknowlogick commentedon Mar 3, 2023
This may be fixed in 1.18.5, could you update to that?
The error in the logs is
server_1 | 2023/03/03 20:42:25 ...s/context/context.go:233:HTML() [E] [64025bb1-59] Render failed: template: repo/issue/view_content/pull:332:69: executing "repo/issue/view_content/pull" at <.Issue.PullRequest.GetDefaultMergeMessage>: can't evaluate field GetDefaultMergeMessage in type *issues.PullRequest
FvD commentedon Mar 4, 2023
Thank you @techknowlogick
Is there any additional information we can provide to help solve this issue?
wxiaoguang commentedon Mar 4, 2023
You might be using custom templates? If yes, revert to the official one.
FvD commentedon Mar 4, 2023
Yes! Thank you @wxiaoguang. It is a custom template that I did not update that is causing the issue. When I revert to the official once I can consistently solve all error 500 issues that we were seeing.
Thank you very much for your help.
This issue can be closed.
Improve template error reporting
Improve template error reporting (#23396)
Improve template error reporting (go-gitea#23396)
Improve template error reporting (#23396) (#23600)