Telegraf:[inputs.redis] Error in plugin: redis: unexpected type=[]interface {} for String

I use Telegraf in a Docker container. In logs of Telegraf appears this error: [inputs.redis] Error in plugin: redis: unexpected type=[]interface {} for String. The Redis is intalled in another server.
The configuration of Redis in telegraf.conf is:

[[inputs.redis]]
servers = ["tcp://myURL:port"]
password = "myPassword"

[[inputs.redis.commands]]
command = ["KEYS","myKey:*"]
field = "myData"
type = "string"

I need help to solve this error, because I need to send the data from Redis to Influxdb.

Hi,

I believe this is because the command KEYS myKey:* is returning a list/set and/or it is emtpy. Telegraf was expecting a string to come back.