Skip to content

Conversation

@yoshinorin
Copy link
Member

What is this?

It the user has a many & huge posts. The JSON.stringify throw the RangeError. The error caused by V8 constraint.

refs: hexojs/hexo#4922

Workaround

catch the exception type of RangeError before save to db.json.
A side-effect of this workaround is the db.json will not generate.

Others

I assume currently, we can't deal with anything about this issue (Stream are may effective but I did not try to implement it.) .

@yoshinorin yoshinorin merged commit b5a3ba7 into hexojs:master Apr 13, 2022
@yoshinorin yoshinorin deleted the fix/hexo-invalid-string-length branch April 13, 2022 12:29
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

Successfully merging this pull request may close these issues.

2 participants