sentriz / gonic

music streaming server / free-software subsonic server API implementation
ircs://irc.libera.chat/#gonic
GNU General Public License v3.0
1.49k stars 105 forks source link

problem for add a podcast #435

Closed CedricT1 closed 3 months ago

CedricT1 commented 6 months ago

gonic version: v0.16.2

if from docker, docker tag: [sentriz/gonic:nightly] if from source, git tag/branch:

Hello thank you for your work gonic is a superb product. I have a problem when I add a podcast to gonic from its web interface (it also crashes from the airsonic interface that I use with gonic). When I add it, it displays a black page and it stays on url/admin/add_podcast_do Other sources don't have this problem, just this one podcast: https://informations.trachsel.info/feed.xml It's just a podcast that a python script makes for me to get weather information in the car.

Are there any logs in the docker?

Thank you and happy holidays

Cédric Trachsel

CedricT1 commented 6 months ago

Here are the logs when I try to enter this podcast: go.senan.xyz/gonic/server/ctrladmin.withAdminSession.func1({0xde8630, 0xc000112018}, 0xc00028c300)

/src/server/ctrladmin/ctrl.go:177 +0x16a

net/http.HandlerFunc.ServeHTTP(0xc00028c200?, {0xde8630?, 0xc000112018?}, 0xde03a0?)

/usr/local/go/src/net/http/server.go:2136 +0x29

go.senan.xyz/gonic/server/ctrladmin.New.withUserSession.func2.1({0xde8630, 0xc000112018}, 0xdddcf0?)

/src/server/ctrladmin/ctrl.go:161 +0x162

net/http.HandlerFunc.ServeHTTP(0xc00028c100?, {0xde8630?, 0xc000112018?}, 0xdddcf0?)

/usr/local/go/src/net/http/server.go:2136 +0x29

go.senan.xyz/gonic/server/ctrladmin.New.withSession.func1.1({0xde8630, 0xc000112018}, 0x10?)

/src/server/ctrladmin/ctrl.go:133 +0x109

net/http.HandlerFunc.ServeHTTP(0xc0000e1898?, {0xde8630?, 0xc000112018?}, 0x7f192d602498?)

/usr/local/go/src/net/http/server.go:2136 +0x29

net/http.(*ServeMux).ServeHTTP(0x415825?, {0xde8630, 0xc000112018}, 0xc00028c100)

/usr/local/go/src/net/http/server.go:2514 +0x142

go.senan.xyz/gonic/handlerutil.BasicCORS.func1({0xde8630, 0xc000112018}, 0xc00028c100)

/src/handlerutil/handlerutil.go:55 +0x308

net/http.HandlerFunc.ServeHTTP(0x7?, {0xde8630?, 0xc000112018?}, 0x71b660?)

/usr/local/go/src/net/http/server.go:2136 +0x29

go.senan.xyz/gonic/handlerutil.Log.func1({0xde82a0?, 0xc00081a000}, 0xc00028c100)

/src/handlerutil/handlerutil.go:33 +0xbb

net/http.HandlerFunc.ServeHTTP(0x0?, {0xde82a0?, 0xc00081a000?}, 0x6?)

/usr/local/go/src/net/http/server.go:2136 +0x29

main.main.StripPrefix.func25({0xde82a0, 0xc00081a000}, 0xc00028c000)

/usr/local/go/src/net/http/server.go:2179 +0x262

net/http.HandlerFunc.ServeHTTP(0x726a40?, {0xde82a0?, 0xc00081a000?}, 0xc00014e3ac?)

/usr/local/go/src/net/http/server.go:2136 +0x29

net/http.(*ServeMux).ServeHTTP(0x415825?, {0xde82a0, 0xc00081a000}, 0xc00028c000)

/usr/local/go/src/net/http/server.go:2514 +0x142

net/http.serverHandler.ServeHTTP({0xde6008?}, {0xde82a0?, 0xc00081a000?}, 0x6?)

/usr/local/go/src/net/http/server.go:2938 +0x8e

net/http.(*conn).serve(0xc00014c630, {0xde90a8, 0xc0004a61b0})

/usr/local/go/src/net/http/server.go:2009 +0x5f4

created by net/http.(*Server).Serve in goroutine 21

/usr/local/go/src/net/http/server.go:3086 +0x5cb
CedricT1 commented 6 months ago

I found it, the problem was with the server that distributes the podcast, I switched from nginx to apache and it's fine.