Skip to content

Conversation

@ryanbrandenburg
Copy link

The output files for particularly large or complex repositories can be quite large which can lead to errors like this one:

Error: Cannot create a string longer than 0x1fffffe8 characters
    at Buffer.toString (node:buffer:830:17)
    at JSON.parse (<anonymous>)
    at ScanCodeProcessor._hasRealErrors (/opt/service/providers/process/scancode.js:94:26)

But we don't want that error to obscure the underlying exceptions, so I suggest that we first always log, and then add an extra level of try-catch in _hasRealErrors.

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.

1 participant