Skip to content

FLUSHALL causes Exception has occurred: TypeError: Cannot read properties of null (reading 'toString') #1883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ltwlf opened this issue Jan 30, 2022 · 1 comment
Labels

Comments

@ltwlf
Copy link

ltwlf commented Jan 30, 2022

When you FLUSHALL with change tracking and server side assisted client caching you'll get a "TypeError: Cannot read properties of null (reading 'toString')" error in the redis:invalidate subscription.

The error is caused because FLUSHALL sends a "null" message to all tracking clients to signal they should flush theirs in memory cache.
(https://redis.io/topics/client-side-caching)

Stack:
Exception has occurred: TypeError: Cannot read properties of null (reading 'toString')
at Function._RedisCommandsQueue_emitPubSubMessage (/home/ltwlf/git/pag/EMOS/server/node_modules/@node-redis/client/dist/lib/client/commands-queue.js:228:94)

Environment:

  • Node.js Version: 17.4
  • Redis Server Version: 6.2.6
  • Node Redis Version: @node-redis/client: 1.0.2
  • Platform: GNU/Linux
@ltwlf ltwlf added the Bug label Jan 30, 2022
@ltwlf
Copy link
Author

ltwlf commented Jan 30, 2022

Duplicate of #1854
Seems to be fixed in #1856
Hope this will get released soon :)

@ltwlf ltwlf closed this as completed Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant