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

try.gitea.io reporting internal server error on all requests #14478

Closed
2 tasks done
techknowlogick opened this issue Jan 26, 2021 · 1 comment
Closed
2 tasks done

try.gitea.io reporting internal server error on all requests #14478

techknowlogick opened this issue Jan 26, 2021 · 1 comment
Labels
skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Milestone

Comments

@techknowlogick
Copy link
Member

  • Gitea version (or commit ref): 1.14.0+dev-611-g0f726caf9
  • Git version: 2.30.0
  • Operating system: Alpine 3.13
  • Database (use [x]):
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
  • Log gist:
2021/01/26 21:04:45 ...s/context/context.go:183:HTML() [D] Template: repo/issue/list
2021/01/26 21:04:45 ...outers/routes/web.go:80:1() [E] PANIC: interface conversion: interface {} is nil, not *context.Context
	/usr/local/go/src/runtime/iface.go:261 (0x412bee)
	/go/src/code.gitea.io/gitea/modules/context/context.go:484 (0x214af9e)
	/go/src/code.gitea.io/gitea/routers/routes/base.go:40 (0x214aea1)
	/go/src/code.gitea.io/gitea/routers/routes/base.go:58 (0x214eaa4)
	/usr/local/go/src/net/http/server.go:2042 (0x76eb83)
	/go/src/code.gitea.io/gitea/routers/routes/web.go:88 (0x215345d)
	/usr/local/go/src/net/http/server.go:2042 (0x76eb83)
	/go/src/code.gitea.io/gitea/routers/routes/base.go:90 (0x214f29b)
	/usr/local/go/src/net/http/server.go:2042 (0x76eb83)
	/go/src/code.gitea.io/gitea/vendor/github.com/go-chi/chi/middleware/realip.go:34 (0x214a0dc)
	/usr/local/go/src/net/http/server.go:2042 (0x76eb83)
	/go/src/code.gitea.io/gitea/routers/routes/web.go:61 (0x2152f9c)
	/usr/local/go/src/net/http/server.go:2042 (0x76eb83)
	/go/src/code.gitea.io/gitea/vendor/github.com/go-chi/chi/mux.go:86 (0x1afbae3)
	/go/src/code.gitea.io/gitea/modules/web/route.go:267 (0x1f1f533)
	/go/src/code.gitea.io/gitea/vendor/github.com/gorilla/context/context.go:141 (0x1174333)

Description

...

@6543 6543 added this to the 1.14.0 milestone Jan 26, 2021
@lunny
Copy link
Member

lunny commented Jan 27, 2021

Should be fixed by #14475

@lunny lunny mentioned this issue Jan 27, 2021
6543 pushed a commit that referenced this issue Jan 27, 2021
Fix #14121, #14478.

The `AccessLog` middleware has to be after `Contexter` or `APIContexter` so that we can get `LoginUserName` if possible.
And also there is a **BREAK** change that it removed internal API access log.
@lunny lunny closed this as completed Jan 28, 2021
@lunny lunny added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Jan 28, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

No branches or pull requests

3 participants