It looks like DNS Made Easy recently changed their API (source: https://github.com/acmesh-official/acme.sh/issues/2031) and it stopped working. I made the changes mentioned on that page and it fixed it. So if anyone experiencing an error similar to:
Please make sure your properly set your DNS API credentials for acme.sh
If you are using sudo, use "sudo -E wo"
You will first need to install jq utility if it's not already installed:
sudo apt-get install jq and then replace the line #117 of dns_me.sh file inside dnsapi folder from
_domain_id=$(printf "%s\n" "$response" | _egrep_o "\"id\":[^,]*" | head -n 1 | cut -d : -f 2 | tr -d '}')
_domain_id=$(printf "%s\n" "$response" | jq .id )