Hi,
Since about a week ago, running the (latest?)
dashman version 0.1.19 (15-g13a09d6-dirty)
always returns "No JSON object could be decoded"
so, launching it in debug mode (btw, could a --verbose be added to just turn it on through "set -x" ?)
bash -x dashman/dashman status
it turns out that the command
timeout 7 curl -s 'httpx://dashninja.pl/api/masternodes?ips=\["x.x.x.x:9999"\]&portcheck=1&balance=1'
gets a redirection into "www." + the old link
which... isn't followed because we're not telling it to do so.
How to fix this?
a) fix the url path (which may break again on the next dashninja website update), and/or
b) explicitly tell curl to follow the redirection, by passing it "-L" (I had gone with this one - for now)
so,
nano dashman/lib/dashman_functions.sh
and on about line 27
change:
curl_cmd='timeout 7 curl -s'
into:
curl_cmd='timeout 7 curl -s -L'
Save it (Ctrl+x, Enter)
Done! It's now fixed until moocowmoo comes back from vacations and updates the dashman tool
Cheers
[Edit: second attempt, first got stuck on the moderation approval queue]