redis / node-redis

Redis Node.js client
https://redis.js.org/
MIT License
16.91k stars 1.89k forks source link

Error Error: ERR unknown command 'config' #743

Closed b96705008 closed 9 years ago

b96705008 commented 9 years ago

When I create a node redis client using elasticache with redis (aws), it trigger this problem. Is there already any solution to this issue?

BridgeAR commented 9 years ago

The following should work without any issues:

client.CONFIG('GET', '*max-*-entries*', function(err, value) {
    console.log(err, value);
});

If you still experience difficulties, please reopen the issue including your code, as it's difficult to tell what's wrong without your code.

yiurenma commented 8 years ago

I use the redisClient on windows10, I face the same problem as the title showing. I just input the host , port and password for the config. And then the problems shows. There is no code related to it . Could you pls kindly suggest where the wrong is ?

BridgeAR commented 8 years ago

The error is returned by Redis and it seems like your used Redis server does not expose the config command (e.g. it's renamed or not exposed at all). If it's the "info" command that fails, please use the noReadyCheck option.

ilyashev commented 7 years ago

I'm seeing the same problem when trying to connect to Redis on Heroku. Is there any known workaround? Thanks.

pikitgb commented 6 years ago

@ilyashev did you found a solution to this issue ? I'm facing the same problem with Kue in Heroku

stockholmux commented 6 years ago

@ilyashev and @pikitgb Most cloud vendors don't support CONFIG or other admin commands.

zanemcca commented 4 years ago

For those on Elasticache I used this guide https://aws.amazon.com/premiumsupport/knowledge-center/elasticache-redis-keyspace-notifications/ and it worked.