-
Notifications
You must be signed in to change notification settings - Fork 453
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
failed process file : failed send RangeError: Invalid string length #655
Comments
Please provide a minimal repro case |
I trace the log, it cause the field 'files' , if the 'files' value is large, then report the error bellows:
the log message :
data.files is very large object that contains many key=>value data |
This is a general issue with you running out of memory. There will always be some limit there, and it looks like you've found it. I'd first ask yourself from an architectural point of view just why this object has to be so large: transmitting this volume of data (presumably hundreds to thousands of MB?) down the wire is going to be exceptionally slow for your clients; and for any other clients who have to download this document. If — for some reason — this is absolutely necessary, you should chunk your object up and submit smaller update ops. This loses the atomicity of a single create, but is the only practical solution for an arbitrarily large object. |
I see, so can not put a directory that contains large files in to Sharedb document |
looks the file content too larger ?
The text was updated successfully, but these errors were encountered: