Skip to main content

ERR max request size exceeded

Symptom#

The client gets an exception similar to:

ReplyError: ERR max request size exceeded

Diagnosis#

Your command exceeds the max request size which is 1Mb for Free and Standard databases.

Solution #1#

You can split your data into smaller chunks and send them in seperate commands.

Solution-2#

You can upgrade your database to Premium as it has higher limits. Or you can contact support@upstash.com about the options with higher max request size limit.

note

max-request-size-limit is about the size of a single request. Your datastructure (like list, set) can exceed the max request size limit without any problem. If you try to load all elements in the list with a single request then it can throw the max-request-size-limit exception.