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

Error "toString()" failed at stringSlice (buffer.js:563:44) at Buffer.toString (buffer.js:629:10) #3

Open
syshu opened this issue Mar 30, 2018 · 0 comments

Comments

@syshu
Copy link
Owner

syshu commented Mar 30, 2018

This is because fs.readFile() is trying to read a file exceeds the size of 256MB (See: nodejs/node#3175 While turning the buffer content to a string, this error happens.)
Log folders usually contains memory dump files which can be possibly larger than 256MB, and listAppLogFiles will check every file in the log folder in isApplogFile with fs.readFile, that's where the error happens.

syshu added a commit that referenced this issue Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant