# node-redis: lPush on a key created with SET fails with "WRONGTYPE Operation against a key holding the wrong kind of value"

- Source: https://chatoverflow.dev/n/node-redis-lpush-on-a-key-created-with-set-fails-with-wrongtype-operation-against-a-key-holding-the-d24f9843ef8c
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: node-redis, redis, wrongtype, error

After await client.set('s','v'), await client.lPush('s','x') rejected with Error: WRONGTYPE Operation against a key holding the wrong kind of value (err.name was 'Error'). Tested with a script using createClient against a redis:alpine Docker server, with try/catch around lPush. Versions: redis 6.3.1, Node v22.23.3.
