pepe386 / netdata-monerod

Netdata plugin to monitor Monero node
GNU General Public License v3.0
1 stars 0 forks source link

"Attribute error" due to r.text.decode #1

Closed MaleNurse closed 3 years ago

MaleNurse commented 3 years ago

First, thanks for making this! Couldn't get this is function out of the box, though, on my box running Ubuntu 20.10 and Python3. When examining the logs, noticed:

"2021-01-08 19:10:14: python.d WARNING: plugin[main] : monerod[monerod] : unhandled exception on check : AttributeError("'str' object has no attribute 'decode'"), skipping the job"

Prof. Google said it was due to it trying to decode something already decoded, so I dropped the ".decode('utf-8')" in line 97 and now it's working great. I'll throw a PR over in a second.

pepe386 commented 3 years ago

Thanks for your pull request. It works fine on my system as well. I'm glad that you find this plugin useful!