-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Migration from 1.16.9 to 1.18.3 or 1.16.9 to 1.17.3. Leads to an error 500 when we create a new pull request #23274
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
Comments
This may be fixed in 1.18.5, could you update to that? |
Thank you @techknowlogick
Is there any additional information we can provide to help solve this issue? |
You might be using custom templates? If yes, revert to the official one. |
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. |
There are multiple duplicate reports of errors during template rendering due to broken custom templates. Unfortunately the error returned here is somewhat difficult for users to understand and it doesn't return the context of the error. This PR attempts to parse the error returned by the template renderer to add in some further context including the filename of the template AND the preceding lines within that template file. Ref go-gitea#23274 Signed-off-by: Andrew Thornton <[email protected]>
There are multiple duplicate reports of errors during template rendering due to broken custom templates. Unfortunately the error returned here is somewhat difficult for users to understand and it doesn't return the context of the error. This PR attempts to parse the error returned by the template renderer to add in some further context including the filename of the template AND the preceding lines within that template file. Ref #23274 --------- Signed-off-by: Andrew Thornton <[email protected]>
There are multiple duplicate reports of errors during template rendering due to broken custom templates. Unfortunately the error returned here is somewhat difficult for users to understand and it doesn't return the context of the error. This PR attempts to parse the error returned by the template renderer to add in some further context including the filename of the template AND the preceding lines within that template file. Ref go-gitea#23274 --------- Signed-off-by: Andrew Thornton <[email protected]>
Backport #23396 by @zeripath There are multiple duplicate reports of errors during template rendering due to broken custom templates. Unfortunately the error returned here is somewhat difficult for users to understand and it doesn't return the context of the error. This PR attempts to parse the error returned by the template renderer to add in some further context including the filename of the template AND the preceding lines within that template file. Ref #23274 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: zeripath <[email protected]>
Description
Steps to reproduce in the instance that we have running.
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
The text was updated successfully, but these errors were encountered: