Skip to content
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

Maximum call stack size exceeded when calling mset with an array bigger than 103,000 #2522

Open
omer727 opened this issue Jun 1, 2023 · 1 comment
Labels

Comments

@omer727
Copy link

omer727 commented Jun 1, 2023

Description

When passing an array to mset bigger than 103000 I get

const arr = new Array(103000).fill('1');
cacheRepo.multiSetObject(arr); 

will throw a Maximum call stack size exceeded exception on

if (Array.isArray(toSet)) {
        args.push(...toSet.flat());
    }

Node.js Version

v18.14.2

Redis Server Version

aws redis

Node Redis Version

1.5.7

Platform

macOS

Logs

No response

@omer727 omer727 added the Bug label Jun 1, 2023
higoramp pushed a commit to higoramp/node-redis that referenced this issue Aug 14, 2024
@higoramp
Copy link

@omer727 Same problem here!
I've just pushed an PR that fix this issue

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

2 participants