We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 RECOVER] runtime error: index out of range [0] with length 0 goroutine 133501 [running]:\ngithub.com/mraron/njudge/internal/web.(*Server).SetupEcho.Recover.RecoverWithConfig.func9.1.1()\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/middleware/recover.go:99 +0x165\npanic({0xde51c0?, 0xc0107f3f80?})\n\t/usr/local/go/src/runtime/panic.go:770 +0x132\ngithub.com/mraron/njudge/internal/web/templates.GetFlash({0xffe950, 0xc006075180}, {0xc007b86b17?, 0x5?})\n\t/app/internal/web/templates/flash.go:43 +0x185\ngithub.com/mraron/njudge/internal/web.(*Server).SetupEcho.MoveF lashesToContextMiddleware.func5.1({0xffe950, 0xc006075180})\n\t/app/internal/web/templates/flash.go:63 +0xc5\ngithub.com/mraron/njudge/internal/web.(*Server).SetupEcho.SetUserMiddleware.func4.1({0xffe950, 0xc006075180})\n\t/app/internal/w eb/handlers/user/middleware.go:47 +0x113\ngithub.com/mraron/njudge/internal/web.(*Server).SetupEcho.SetTranslatorMiddleware.func3.1({0xffe950, 0xc006075180})\n\t/app/internal/web/templates/i18n/translate.go:106 +0x116\ngithub.com/labstack/echo/v4/middleware.CSRFWithConfig.func1.1({0xffe950, 0xc006075180})\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/middleware/csrf.go:211 +0x704\ngithub.com/labstack/echo/v4/middleware.GzipWithConfig.func1.1({0xffe950, 0xc006075180})\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/middleware/compress.go:139 +0x2a3\ngithub.com/mraron/njudge/internal/web.(*Server).SetupEcho.Middleware.MiddlewareWithConfig.func10.1({0xffe950, 0xc006075180})\n\t/root/go/pkg/ mod/github.com/labstack/echo-contrib@v0.17.1/session/session.go:73 +0x104\ngithub.com/mraron/njudge/internal/web.(*Server).SetupEcho.Recover.RecoverWithConfig.func9.1({0xffe950, 0xc006075180})\n\t/root/go/pkg/mod/github.com/labstack/echo/ v4@v4.12.0/middleware/recover.go:130 +0x114\ngithub.com/mraron/njudge/internal/web.(*Server).SetupEcho.New.NewWithConfig.func8.1({0xffe950, 0xc006075180})\n\t/root/go/pkg/mod/github.com/samber/slog-echo@v1.14.1/middleware.go:128 +0x2ee\ng ithub.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc0001c4248, {0xfef2f0, 0xc0001eca80}, 0xc0056e9560)\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/echo.go:674 +0x327\nnet/http.serverHandler.ServeHTTP({0xc0098e96e0?}, {0xfef2f0?, 0 xc0001eca80?}, 0x6?)\n\t/usr/local/go/src/net/http/server.go:3137 +0x8e\nnet/http.(*conn).serve(0xc006bca630, {0xff0410, 0xc00030ccf0})\n\t/usr/local/go/src/net/http/server.go:2039 +0x5e8\ncreated by net/http.(*Server).Serve in goroutine 1\n\t/usr/local/go/src/net/http/server.go:3285 +0x4b4\n\ngoroutine 1 [IO wait]:\ninternal/poll.runtime_pollWait(0x7f2cb52bb4b8, 0x72)\n\t/usr/local/go/src/runtime/netpoll.go:345 +0x85\ninternal/poll.(*pollDesc).wait(0x49?, 0x1?, 0x0)\n\t/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x27\ninternal/poll.(*pollDesc).waitRead(...)\n\t/usr/local/go/src/internal/poll/fd_poll_runtime.go:89\ninternal/poll.(*FD).Accept(0xc00638a200)\n\t/usr/local/go/src/internal/poll/fd_u nix.go:611 +0x2ac\nnet.(*netFD).accept(0xc00638a200)\n\t/usr/local/go/src/net/fd_unix.go:172 +0x29\nnet.(*TCPListener).accept(0xc0037ef3e0)\n\t/usr/local/go/src/net/tcpsock_posix.go:159 +0x1e\nnet.(*TCPListener).Accept(0xc0037ef3e0)\n\t/u sr/local/go/src/net/tcpsock.go:327 +0x30\nnet/http.(*Server).Serve(0xc0024de000, {0xfef5e0, 0xc0037ef3e0})\n\t/usr/local/go/src/net/http/server.go:3255 +0x33e\nnet/http.(*Server).ListenAndServe(0xc0024de000)\n\t/usr/local/go/src/net/http/server.go:3184 +0x71\ngithub.com/mraron/njudge/internal/web.(*Server).Run(0xc0000e3608, {0xff03d8, 0x15dbc60})\n\t/app/internal/web/server.go:58 +0x256\ngithub.com/mraron/njudge/cmd.NewWebCmd.func2(0xc000218f08, {0xe3df69?, 0x4?, 0xe3de39?})\n\t/app/cmd/web.go:110 +0x658\ngithub.com/spf13/cobra.(*Command).execute(0xc000218f08, {0x15dbc60, 0x0, 0x0})\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983 +0xaca\ngithub.com/spf13/cobra.(*Command).ExecuteC(0x156c7c 0)\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff\ngithub.com/spf13/cobra.(*Command).Execute(...)\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039\ngithub.com/mraron/njudge/cmd.Execute()\n\t/app/ cmd/root.go:50 +0xe5\nmain.main()\n\t/app/main.go:37 +0x19f\n\ngoroutine 6 [select, 126 minutes]:\ndatabas\n
The text was updated successfully, but these errors were encountered:
34bb325
No branches or pull requests
The text was updated successfully, but these errors were encountered: