Package: redis-server
Version: 5.0.3-4+deb10u3

The actually version has a bug. I found it out by using nodejs with the redis 
package on my host.
Before the redis update, everything worked fine. This is the error:

/app/node_modules/redis-parser/lib/parser.js:179
    return new ReplyError(string)
           ^

ReplyError: ERR syntax error
    at parseError (/app/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/app/node_modules/redis-parser/lib/parser.js:302:14) {
  command: 'SET',
  args: [
    '2a02:908:531:e6e0:42b0:76ff:fea4:d7cb, 162.158.93.15',
    '2',
    'KEEPTTL'
  ],
  code: 'ERR'
}

I set a key value with a lifetime of 15 seconds, so the value will be deleted 
after 15 seconds. After
setting it i change the value several times before end of life, without 
resetting the lifetime. As in
the error my syntax seems to be wrong, but it works on every other redis-server 
version. And the syntax
is from the documentation, so its correct. This is the code line

const ok = await RedisServer.setValue(key, value, 'KEEPTTL');

I solved the problem by using the redis-server version from the backport.

Reply via email to