DRuggeri / netgear_exporter

A Prometheus exporter for Netgear consumer routers
Other
31 stars 6 forks source link

Needs ability to set charset #15

Open towo opened 1 year ago

towo commented 1 year ago

Hey there, depending on the device local you're looking at, you may need to allow … slightly ancient charsets, apparently:

ERRO[0010] Error while collecting traffic statistics: xml: encoding "iso-8859-1" declared but Decoder.CharsetReader is nil  source="traffic_collector.go:126"
ERRO[0010] Error while collecting client statistics: xml: encoding "iso-8859-1" declared but Decoder.CharsetReader is nil  source="clients_collector.go:122"
ERRO[0010] Error while collecting system info: xml: encoding "iso-8859-1" declared but Decoder.CharsetReader is nil  source="system_info_collector.go:110"

Yes, that's latin1… not quite sure why Netgear's still using it, but it's there alright.

towo commented 1 year ago

Or, you know, these Orbi things just don't do SOAP and throw a 500.