@wayne-workman I said to run npm install, not ./nodebb install
Invalid Array Buffer Length - Error
I myself have received this error when posting large posts and now some of my users are reporting it. I was wondering if anyone else has experienced it?
Also, people get this one all the time when up or down voting posts...
Refreshing the page usually resolves these issues but that is not ideal as for the first one you lose your post and most of my members don't have the ability to copy, refresh, paste the contents and retry.
Any ideas greatly appreciated.
How big are the posts? 32767 is the default limit set in the ACP. Also post the database you are using.
@baris it happens randomly, sometimes not at all with huge posts. I use redis as the db.
However I can write a post, press submit, get this error. Copy the contents, refresh the page, paste the contents and then it posts fine.
Thanks for your reply
Referencing this issue https://github.com/nodejs/node/issues/3543
It could be that your Node process is out of memory. Have you tried monitoring memory usage?
@PitaJ I don't think it is a memory issue, I have about 10 concurrent users as a maximum at the minute. I have just installed the new graph metrics provided by digital ocean memory is around 30%, will keep an eye on that.
I have also increased the post length in the ACP.
Will report back if it continues
Still get the INVALID DATA when upvoting/downvoting all the time though
Is it a specific post that throws invalid data or all posts?
@baris it can be any at random times, no consistency at all, a refresh of the page solves the issue
Thanks again for the reply
Users are still receiving the invalid buffer error as well, it appears to be (but I am not sure) posts with a lot of images. Is that likely related?
Does the buffer array limit/length include the image content? I wouldn't think so.
Note: Our images are currently sent to imgur.