teldrive
teldrive copied to clipboard
Error 500 default channel not set
Can you make to auto set Default Channel or Create new Channel after login for uploading because without set the Channel get error 500.
24/12/2023 04:17 PM ERROR uploads uploadFile {"error": "default channel not set", "errorVerbose": "default channel not set\ngithub.com/divyam234/teldrive/pkg/services.GetDefaultChannel\n\t/app/pkg/services/common.go:265\ngithub.com/divyam234/teldrive/pkg/services.(*UploadService).UploadFile\n\t/app/pkg/services/upload.go:153\ngithub.com/divyam234/teldrive/pkg/controller.(*Controller).UploadFile\n\t/app/pkg/controller/upload.go:41\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174\ngithub.com/divyam234/teldrive/pkg/middleware.Authmiddleware\n\t/app/pkg/middleware/authjwt.go:50\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174\ngithub.com/divyam234/teldrive/api.InitRouter.RecoveryWithZap.CustomRecoveryWithZap.func2\n\t/go/pkg/mod/github.com/gin-contrib/[email protected]/zap.go:159\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174\ngithub.com/divyam234/teldrive/api.InitRouter.Ginzap.GinzapWithConfig.func1\n\t/go/pkg/mod/github.com/gin-contrib/[email protected]/zap.go:59\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174\ngithub.com/gin-gonic/gin.(*Engine).handleHTTPRequest\n\t/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:620\ngithub.com/gin-gonic/gin.(*Engine).ServeHTTP\n\t/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:576\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2938\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:2009\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1650"}
got the same error after upgrading to 1.0.18
After logging in to teldrive
- Click On your profile photo
- Then Settings
- Set the Default Channel to Channel name you created
This should solve your issue
thank you @rHohith