Open RichieRogers opened 1 month ago
I'm getting the same errors, though interestingly this only started after the last reboot of my Omada controller yesterday. Before that, it had been working.
Same here.
and here
I'm getting the same error, was driving me nuts until I found this. I did make some changes on the server that was running this docker image, and I thought it was somehow related to that, even if it should not cause this. This is a very useful collector so hopefully, @charlie-haley will have a look at and eventually fix this.
Hi, I've just upgraded my Omada Controller to version 5.14.20.9 and exporter to v0.13.0. However, I now get the following error when trying to run the exporter: sudo /bin/omada-exporter --host https://my-omada-server:8043 --username prometheus --password REDACTED --insecure true
panic: runtime error: slice bounds out of range [1:0]
goroutine 1 [running]: github.com/charlie-haley/omada_exporter/pkg/api.(Client).getCid(0x40000b2680) github.com/charlie-haley/omada_exporter@v0.13.0/pkg/api/auth.go:64 +0x1a4 github.com/charlie-haley/omada_exporter/pkg/api.Configure(0x8dd660) github.com/charlie-haley/omada_exporter@v0.13.0/pkg/api/api.go:51 +0x88 github.com/charlie-haley/omada_exporter/cmd.run(0x44b9a0?) github.com/charlie-haley/omada_exporter@v0.13.0/cmd/exporter.go:91 +0x19c github.com/urfave/cli/v2.(App).RunContext(0x4000082680, {0x5bda68?, 0x4000120020}, {0x4000128000, 0x9, 0x9}) github.com/urfave/cli/v2@v2.3.0/app.go:322 +0x6ec github.com/urfave/cli/v2.(*App).Run(...) github.com/urfave/cli/v2@v2.3.0/app.go:224 github.com/charlie-haley/omada_exporter/cmd.Run() github.com/charlie-haley/omada_exporter@v0.13.0/cmd/exporter.go:60 +0xca4 main.main() github.com/charlie-haley/omada_exporter@v0.13.0/main.go:8 +0x1c
Is there a fix for this?
Thanks, Richie