evanhuang8 / iorejson

A ioredis based Rejson client.
MIT License
34 stars 8 forks source link

arrapend and arrinsert are not working #3

Open avlan opened 6 years ago

avlan commented 6 years ago

I tried inserting using arrapend and I got the same error over and over, same happened to me when I was trying to use arrinsert

{ ReplyError: WRONGTYPE Operation against a key holding the wrong kind of value
    at JavascriptRedisParser.returnError (/node_modules/ioredis/lib/redis/parser.js:24:25)
    at JavascriptRedisParser.execute (/node_modules/redis-parser/lib/parser.js:572:12)
    at Socket.<anonymous> (/node_modules/ioredis/lib/redis/event_handler.js:107:22)
     at Socket.emit (events.js:160:13)
     at addChunk (_stream_readable.js:269:12)
     at readableAddChunk (_stream_readable.js:256:11)
    at Socket.Readable.push (_stream_readable.js:213:10)
     at TCP.onread (net.js:599:20)
   name: 'ReplyError',
  message: 'WRONGTYPE Operation against a key holding the wrong kind of value',
  command: 
   { name: 'JSON.ARRAPPEND',
     args: [ 'example', '.', '{"firstname":"Jon","lastname":"Doe"}' ] } }