Skip to content

Http 500 on /users/settings/notify #493

@heubeck

Description

@heubeck

Describe the bug
When navigating to /users/settings/notify (via user -> settings -> notification or direct via url) it ends up in

image

Server logs the following:

2023-08-25 11:12:29.169 CEST
2023-08-25 09:12:29.169 �[31mERROR�[0m handler/handler.go:36 code: 500, reason: base.database_error, message: , error: pq: relation "user_notification_config" does not exist
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/answerdev/answer/internal/repo/user_notification_config/user_notification_config_repo.go:51 github.com/answerdev/answer/internal/repo/user_notification_config.(*userNotificationConfigRepo).GetByUserID
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/answerdev/answer/internal/service/user_notification_config/user_notification_config_service.go:38 github.com/answerdev/answer/internal/service/user_notification_config.(*UserNotificationConfigService).GetUserNotificationConfig
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/answerdev/answer/internal/controller/user_controller.go:506 github.com/answerdev/answer/internal/controller.(*UserController).GetUserNotificationConfig
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/gin-gonic/gin/context.go:174 github.com/gin-gonic/gin.(*Context).Next
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/answerdev/answer/internal/base/middleware/auth.go:116 github.com/answerdev/answer/internal/base/middleware.(*AuthUserMiddleware).MustAuth.func1
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/gin-gonic/gin/context.go:174 github.com/gin-gonic/gin.(*Context).Next
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/anargu/gin-brotli/gin_brotli.go:71 github.com/anargu/gin-brotli.Brotli.func1
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/gin-gonic/gin/context.go:174 github.com/gin-gonic/gin.(*Context).Next
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/gin-gonic/gin/gin.go:620 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
2023-08-25 11:12:29.169 CEST
/go/src/github.com/answerdev/answer/answer_build2005471230/vendor/github.com/gin-gonic/gin/gin.go:576 github.com/gin-gonic/gin.(*Engine).ServeHTTP
2023-08-25 11:12:29.169 CEST
/usr/local/go/src/net/http/server.go:2947 net/http.serverHandler.ServeHTTP
2023-08-25 11:12:29.169 CEST
/usr/local/go/src/net/http/server.go:1991 net/http.(*conn).serve
2023-08-25 11:12:29.169 CEST
/usr/local/go/src/runtime/asm_amd64.s:1594 runtime.goexit

Answer was setup using AUTO_INSTALL in version 1.1.2.
There's no SMTP configured.

Platform (please complete the following information):

  • Device: Various
  • OS: official Linux container on Kubernetes
  • Browser: Various
  • Version 1.1.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions