Closed Cheppetto closed 5 months ago
http: panic serving 192.168.233.178:34346: runtime error: index out of range [0] with length 0
goroutine 1470 [running]:
net/http.(*conn).serve.func1()
net/http/server.go:1898 +0xbe
panic({0x2c1c7a0?, 0xc0018eea08?})
runtime/panic.go:770 +0x132
github.com/evcc-io/evcc/util/logstash.element.areaLevel({0xc00117e300?, 0xc001ae7570?})
github.com/evcc-io/evcc/util/logstash/element.go:16 +0xd9
github.com/evcc-io/evcc/util/logstash.(*logger).Areas(0x10?)
github.com/evcc-io/evcc/util/logstash/log.go:88 +0x1e5
github.com/evcc-io/evcc/util/logstash.Areas(...)
github.com/evcc-io/evcc/util/logstash/log.go:17
github.com/evcc-io/evcc/server.logAreasHandler({0x3b09490, 0xc001820a20}, 0x6?)
github.com/evcc-io/evcc/server/http_site_handler.go:251 +0x2b
net/http.HandlerFunc.ServeHTTP(0xc0017a7560?, {0x3b09490?, 0xc001820a20?}, 0x41d745?)
net/http/server.go:2166 +0x29
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc0010fd320, {0x3b09490, 0xc001820a20}, 0xc0006807e0)
github.com/gorilla/handlers@v1.5.2/cors.go:54 +0x335
github.com/gorilla/handlers.CompressHandler.CompressHandlerLevel.func1({0x3b05180, 0xc000936c40}, 0xc0006807e0)
github.com/gorilla/handlers@v1.5.2/compress.go:141 +0x576
net/http.HandlerFunc.ServeHTTP(0xc0006807e0?, {0x3b05180?, 0xc000936c40?}, 0x2b60360?)
net/http/server.go:2166 +0x29
github.com/evcc-io/evcc/server.(*HTTPd).RegisterSystemHandler.ensureAuthHandler.func2.1({0x3b05180, 0xc000936c40}, 0xc0006807e0)
github.com/evcc-io/evcc/server/http_auth.go:140 +0x94
net/http.HandlerFunc.ServeHTTP(0x2b95860?, {0x3b05180?, 0xc000936c40?}, 0xc?)
net/http/server.go:2166 +0x29
github.com/evcc-io/evcc/server.jsonHandler.func1({0x3b05180, 0xc000936c40}, 0xc0006807e0)
github.com/evcc-io/evcc/server/http_site_handler.go:72 +0xf6
net/http.HandlerFunc.ServeHTTP(0xc0006806c0?, {0x3b05180?, 0xc000936c40?}, 0x50630f?)
net/http/server.go:2166 +0x29
github.com/gorilla/mux.(*Router).ServeHTTP(0xc000a84840, {0x3b05180, 0xc000936c40}, 0xc0015a9e60)
github.com/gorilla/mux@v1.8.1/mux.go:212 +0x1e2
net/http.serverHandler.ServeHTTP({0xc0017a7530?}, {0x3b05180?, 0xc000936c40?}, 0x6?)
net/http/server.go:3137 +0x8e
net/http.(*conn).serve(0xc0010fd0e0, {0x3b0c528, 0xc001659a70})
net/http/server.go:2039 +0x5e8
created by net/http.(*Server).Serve in goroutine 1
net/http/server.go:3285 +0x4b4
selbes problem mit der version 1.126.0 , braucht ihr was von mir oder reicht euch die info das ich das problem auch habe.
Schau mal bitte in die Browser Netzwerkkonsole- gibts da einen API-Aufruf vorher? Welchen?
Describe the bug
Error shows up in the log on GET requests (websocket connection)
Steps to reproduce
Configuration details
Log details
What type of operating system are you running?
Linux
Version
HaaS OS