tellytv / telly

An IPTV proxy
MIT License
751 stars 105 forks source link

panic/error while trying to GET epg.xml #199

Closed BEisem closed 5 years ago

BEisem commented 5 years ago

telly release with the issue: telly, version 1.5.0 (branch: HEAD, revision: 5d61aa56231a40aa395b7079c38d4d6865b5dd0f) build user: root@72ff8afbed41 build date: 20180912-02:54:53 go version: go1.10.3

Operating environment (Docker/Windows/Linux/QNAP, etc.): macOS 10.12.6

Description of problem:

The following error appears periodically in the Mac terminal. Also, I am having problems downloading the epg.xml file, and when I try to add the DVR to Plex, I get "Invalid or missing file" for the epg. This leads me to believe telly is not serving the xml file correctly.

2018/09/15 20:32:39 [Recovery] 2018/09/15 - 20:32:39 panic recovered:
GET /epg.xml HTTP/1.0
Host: 192.168.7.59:6077
Connection: close
Accept: */*
Accept-Encoding: gzip
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

write tcp 192.168.7.59:6077->192.168.7.59:53873: write: protocol wrong type for socket
/usr/local/go/src/runtime/panic.go:502 (0x402bc58)
/go/src/github.com/tellytv/telly/vendor/github.com/gin-gonic/gin/context.go:714 (0x46246ff)
/go/src/github.com/tellytv/telly/vendor/github.com/gin-gonic/gin/context.go:792 (0x4624e40)
/go/src/github.com/tellytv/telly/internal/api/xmltv.go:73 (0x47536c3)
/go/src/github.com/tellytv/telly/internal/api/utils.go:86 (0x475552a)
/go/src/github.com/tellytv/telly/vendor/github.com/gin-gonic/gin/context.go:108 (0x46214d2)
/go/src/github.com/tellytv/telly/vendor/github.com/zsais/go-gin-prometheus/middleware.go:358 (0x474a43b)
/go/src/github.com/tellytv/telly/vendor/github.com/gin-gonic/gin/context.go:108 (0x46214d2)
/go/src/github.com/tellytv/telly/vendor/github.com/gin-gonic/gin/recovery.go:48 (0x4632419)
/go/src/github.com/tellytv/telly/vendor/github.com/gin-gonic/gin/context.go:108 (0x46214d2)
/go/src/github.com/tellytv/telly/vendor/github.com/gin-gonic/gin/gin.go:361 (0x46294e5)
/go/src/github.com/tellytv/telly/vendor/github.com/gin-gonic/gin/gin.go:326 (0x4628d32)
/usr/local/go/src/net/http/server.go:2694 (0x43250eb)
/usr/local/go/src/net/http/server.go:1830 (0x4321240)
/usr/local/go/src/runtime/asm_amd64.s:2361 (0x4057720)
BEisem commented 5 years ago

Seems to be fixed with the latest build.