# A problem with redis nodes

**URL:** https://discourse.nodered.org/t/a-problem-with-redis-nodes/43802
**Category:** General
**Created:** [7 April 2021 09:22 UTC](https://discourse.nodered.org/t/a-problem-with-redis-nodes/43802 "2021-04-07T09:22:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vtgav](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@vtgav](https://discourse.nodered.org/u/vtgav)
#### Post date: [7 April 2021 09:22 UTC](https://discourse.nodered.org/t/a-problem-with-redis-nodes/43802/1 "2021-04-07T09:22:35Z")

</div>

Greetings, I've successfully used redis from node-red in the past, and have just started a new piece of work which again needs redis, I'm using nodes from node-red-contrib-redis 1.3.7 but I'm having a struggle getting stuff to work, and this is probably me being an idiot !

The example from from the info page ( [node-red-contrib-redis (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-redis) ) all work fine, but when I use the nodes in my own code it fails in a strange way.

Here's an example of the problem, the sample flow has a redis command node showing how to do an hmset, but if I do what should be exactly the same thing - I copy the inject node with topic = myHash and a JSON payload = {"a":"1","b":2} and send that into a redis command node having selected the HMSET command it fails with "ReplyError: ERR wrong number of arguments for 'hmset' command"

The data going into the node must be correct - its the same inject node as used in the example - the only difference is its going into a redis command node where I selected the 'action'

To prove this I copied the sample hmset command node and this works - so what doesn't work is me configuring a command node myself - and all you have to do is literally select the command you want to use, in this case HMSET !?!?

so, I'm baffled . . . any ideas appreciated !

thx  
Gav

---

<div class="post-metadata">

### Author: ![vtgav](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@vtgav](https://discourse.nodered.org/u/vtgav)
#### Post date: [7 April 2021 09:30 UTC](https://discourse.nodered.org/t/a-problem-with-redis-nodes/43802/2 "2021-04-07T09:30:17Z")

</div>

further investigation - the sample node is weird because it's configured for the hmset command ( note thats lower case ) but the node configuration, when you open it, doesn't show the command ! because the command list is all UPPER CASE. If I select HMSET from the command list it fails with the error I reported, and if I export the code and change HMSET to hmset and reimport it, then it works !

So it seems to be case related - but the crazy thing is, you can't configure lower case commands in the node - the list only has upper case, and these fail ☹ I'm pretty baffled by this

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [6 June 2021 09:30 UTC](https://discourse.nodered.org/t/a-problem-with-redis-nodes/43802/3 "2021-06-06T09:30:44Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
