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: invalid string length #1178

Open
mikevercoelen opened this issue Sep 27, 2023 · 1 comment
Open

Error: invalid string length #1178

mikevercoelen opened this issue Sep 27, 2023 · 1 comment

Comments

@mikevercoelen
Copy link

We're getting the following error in our pipeline:

$ /rocko/node_modules/.bin/betterer ci
--
  |  
  | \ \| /     _         _   _
  | '-.ooo.-'  \| \|__  ___\| \|_\| \|_ ___ _ __ ___ _ __
  | ---ooooo--- \| '_ \/ _ \ __\| __/ _ \ '__/ _ \ '__\|
  | .-'ooo'-.  \| \|_)\|  __/ \|_\| \|\|  __/ \| \|  __/ \|
  | / \| \    \|_.__/\___\|\__\|\__\___\|_\|  \___\|_\|
  |  
  |  
  | Error: Invalid string length
  | at JSON.stringify (<anonymous>)
  | at serializerDefault
  | (/rocko/node_modules/fast-memoize/src/index.js:107:15)
  | at monadic (/rocko/node_modules/fast-memoize/src/index.js:33:43)
  | at BettererGitΩ._getFileHash
  | (/rocko/node_modules/@betterer/betterer/dist/fs/git.js:92:40)
  | at async /rocko/node_modules/@betterer/betterer/dist/fs/git.js:151:55
  | at async Promise.all (index 0)
  | at async BettererGitΩ._sync
  | (/rocko/node_modules/@betterer/betterer/dist/fs/git.js:142:9)
  | at async BettererGitΩ.sync
  | (/rocko/node_modules/@betterer/betterer/dist/fs/git.js:70:9)
  | at async BettererGitΩ.init
  | (/rocko/node_modules/@betterer/betterer/dist/fs/git.js:62:9)

Has anyone had this error before? It was running fine before

@phenomnomnominal
Copy link
Owner

Did a bit of research and this might be an out of memory error in disguise. You could try doing the whole NODE_OPTIONS="--max-old-space-size=4096" and see if that makes any difference.

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

2 participants