-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
检查清单
- 已经在 GitHub Issues 中搜索过该问题
是什么版本出现了此问题?
latest
使用的什么数据库?
SQLite3
使用的哪种方式部署?
Docker
在线站点地址
No response
发生了什么?
什么都没有发生,但是报错,疑似对空值处理有问题
相关日志输出
2023-03-09T08:13:43.910Z ERROR handler/server.go:229 handler error {"error": ": NOT NULL constraint failed: category.create_time", "errorVerbose": "NOT NULL constraint failed: category.create_time\n\ngithub.com/go-sonic/sonic/util/xerr.ErrorType.Wrap\n\tgithub.com/go-sonic/sonic/util/xerr/error.go:50\ngithub.com/go-sonic/sonic/service/impl.WrapDBErr\n\tgithub.com/go-sonic/sonic/service/impl/common.go:23\ngithub.com/go-sonic/sonic/service/impl.(*categoryUpdateExecutor).UpdateBatch.func1\n\tgithub.com/go-sonic/sonic/service/impl/category.go:432\ngithub.com/go-sonic/sonic/dal.Transaction.func1\n\tgithub.com/go-sonic/sonic/dal/dal.go:132\ngithub.com/go-sonic/sonic/dal.(*Query).Transaction.func1\n\tgithub.com/go-sonic/sonic/dal/gen.go:210\ngorm.io/gorm.(*DB).Transaction\n\tgorm.io/gorm@v1.24.2/finisher_api.go:622\ngithub.com/go-sonic/sonic/dal.(*Query).Transaction\n\tgithub.com/go-sonic/sonic/dal/gen.go:210\ngithub.com/go-sonic/sonic/dal.Transaction\n\tgithub.com/go-sonic/sonic/dal/dal.go:130\ngithub.com/go-sonic/sonic/service/impl.(*categoryUpdateExecutor).UpdateBatch\n\tgithub.com/go-sonic/sonic/service/impl/category.go:428\ngithub.com/go-sonic/sonic/service/impl.categoryServiceImpl.UpdateBatch\n\tgithub.com/go-sonic/sonic/service/impl/category.go:294\ngithub.com/go-sonic/sonic/handler/admin.(*CategoryHandler).UpdateCategoryBatch\n\tgithub.com/go-sonic/sonic/handler/admin/category.go:122\ngithub.com/go-sonic/sonic/handler.(*Server).wrapHandler.func1\n\tgithub.com/go-sonic/sonic/handler/server.go:227\ngithub.com/gin-gonic/gin.(*Context).Next\n\tgithub.com/gin-gonic/gin@v1.8.2/context.go:173\ngithub.com/go-sonic/sonic/handler/middleware.(*InstallRedirectMiddleware).InstallRedirect.func1\n\tgithub.com/go-sonic/sonic/handler/middleware/install.go:43\ngithub.com/gin-gonic/gin.(*Context).Next\n\tgithub.com/gin-gonic/gin@v1.8.2/context.go:173\ngithub.com/go-sonic/sonic/handler/middleware.(*RecoveryMiddleware).RecoveryWithLogger.func1\n\tgithub.com/go-sonic/sonic/handler/middleware/recovery.go:62\ngithub.com/gin-gonic/gin.(*Context).Next\n\tgithub.com/gin-gonic/gin@v1.8.2/context.go:173\ngithub.com/go-sonic/sonic/handler/middleware.(*GinLoggerMiddleware).LoggerWithConfig.func1\n\tgithub.com/go-sonic/sonic/handler/middleware/log.go:50\ngithub.com/gin-gonic/gin.(*Context).Next\n\tgithub.com/gin-gonic/gin@v1.8.2/context.go:173\ngithub.com/gin-gonic/gin.(*Engine).handleHTTPRequest\n\tgithub.com/gin-gonic/gin@v1.8.2/gin.go:616\ngithub.com/gin-gonic/gin.(*Engine).ServeHTTP\n\tgithub.com/gin-gonic/gin@v1.8.2/gin.go:572\nnet/http.serverHandler.ServeHTTP\n\tnet/http/server.go:2947\nnet/http.(*conn).serve\n\tnet/http/server.go:1991\nruntime.goexit\n\truntime/asm_arm64.s:1172\n\n"}
附加信息
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working