teldrive icon indicating copy to clipboard operation
teldrive copied to clipboard

Error 500 default channel not set

Open py7hon opened this issue 1 year ago • 3 comments

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"}

py7hon avatar Dec 24 '23 16:12 py7hon

got the same error after upgrading to 1.0.18

ylorn avatar Dec 28 '23 04:12 ylorn

After logging in to teldrive

  1. Click On your profile photo
  2. Then Settings
  3. Set the Default Channel to Channel name you created

This should solve your issue

rHohith avatar Dec 29 '23 17:12 rHohith

thank you @rHohith

tarbib avatar Feb 08 '24 12:02 tarbib