Skip to content
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

panic while opening issue #29558

Closed
Bisstocuz opened this issue Mar 3, 2024 · 1 comment · Fixed by #29559
Closed

panic while opening issue #29558

Bisstocuz opened this issue Mar 3, 2024 · 1 comment · Fixed by #29559
Labels

Comments

@Bisstocuz
Copy link

Bisstocuz commented Mar 3, 2024

Description

2024/03/03 20:43:12 ...s/notifier_helper.go:143:notify() [W] Ref of event "pull_request_assign" is empty, will fall back to the default branch
2024/03/03 20:43:12 ...eb/routing/logger.go:78:func1() [W] router: failed    POST /strategist/frontend/issues/new for 172.21.0.1:0, panic in 126.9ms @ repo/issue.go:1166(repo.NewIssuePost), err=interface conversion: structs.Payloader is *structs.IssuePayload, not *structs.PullRequestPayload
2024/03/03 20:43:12 ...rs/common/errpage.go:26:RenderPanicErrorPage() [E] PANIC: interface conversion: structs.Payloader is *structs.IssuePayload, not *structs.PullRequestPayload
/usr/local/go/src/runtime/panic.go:914 (0x43eefe)
/go/src/code.gitea.io/gitea/modules/web/routing/logger_manager.go:116 (0x1aab208)
/usr/local/go/src/runtime/panic.go:914 (0x43eefe)
/usr/local/go/src/runtime/iface.go:263 (0x411e70)
/usr/local/go/src/runtime/iface.go:273 (0x411e29)
/go/src/code.gitea.io/gitea/modules/actions/workflows.go:227 (0x1e1c1a4)
/go/src/code.gitea.io/gitea/modules/actions/workflows.go:135 (0x1e1ac44)
/go/src/code.gitea.io/gitea/services/actions/notifier_helper.go:156 (0x1e29628)
/go/src/code.gitea.io/gitea/services/actions/notifier_helper.go:103 (0x1e28c86)
/go/src/code.gitea.io/gitea/services/actions/notifier.go:219 (0x1e23a3e)
/go/src/code.gitea.io/gitea/services/actions/notifier.go:156 (0x1e231cc)
/go/src/code.gitea.io/gitea/services/notify/notify.go:211 (0x1db63ca)
/go/src/code.gitea.io/gitea/services/issue/assignee.go:57 (0x1db634b)
/go/src/code.gitea.io/gitea/services/issue/issue.go:205 (0x1db9dfe)
/go/src/code.gitea.io/gitea/services/issue/issue.go:30 (0x1db9009)
/go/src/code.gitea.io/gitea/routers/web/repo/issue.go:1217 (0x253e3a4)
/usr/local/go/src/reflect/value.go:596 (0x4f23a6)
/usr/local/go/src/reflect/value.go:380 (0x4f1478)
/go/src/code.gitea.io/gitea/modules/web/handler.go:166 (0x1ab487b)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/chain.go:31 (0x1aab865)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:444 (0x1aae7b3)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/get_head.go:37 (0x24deafb)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:145 (0x1ab4b23)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:176 (0x1ab4917)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/context/context.go:223 (0x1bc882e)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:145 (0x1ab4b23)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/pkg/mod/gitea.com/go-chi/[email protected]/session.go:257 (0x1b216d5)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:145 (0x1ab4b23)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:73 (0x1aac455)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:316 (0x1aadd3a)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:444 (0x1aae7b3)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:73 (0x1aac455)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:316 (0x1aadd3a)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:444 (0x1aae7b3)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/routing/logger_manager.go:122 (0x1aab098)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:145 (0x1ab4b23)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/pkg/mod/github.com/chi-middleware/[email protected]/middleware.go:37 (0x24299b3)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:145 (0x1ab4b23)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/routers/common/middleware.go:45 (0x242abd2)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:145 (0x1ab4b23)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/routers/common/middleware.go:37 (0x242a755)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:145 (0x1ab4b23)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/routers/common/middleware.go:99 (0x2429d15)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/src/code.gitea.io/gitea/modules/web/handler.go:145 (0x1ab4b23)
/usr/local/go/src/net/http/server.go:2136 (0x9a4188)
/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:90 (0x1aac414)
/go/src/code.gitea.io/gitea/modules/web/route.go:163 (0x1ab5f47)
/usr/local/go/src/net/http/server.go:2938 (0x9a6e6d)
/usr/local/go/src/net/http/server.go:2009 (0x9a2d53)
/usr/local/go/src/runtime/asm_amd64.s:1650 (0x475b00)

It report error 500 while opening an new issue, but issue will be opened if refresh the page.

Gitea Version

1.21.7

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

Linux

How are you running Gitea?

Docker Compose

Database

MySQL/MariaDB

@yp05327
Copy link
Contributor

yp05327 commented Mar 3, 2024

I think this has been fixed by #29467

But there are still some bugs, will be fixed in #29559

silverwind pushed a commit that referenced this issue Mar 3, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Mar 3, 2024
silverwind pushed a commit that referenced this issue Mar 3, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants