har-extractor icon indicating copy to clipboard operation
har-extractor copied to clipboard

handle big files

Open fidoriel opened this issue 4 months ago • 0 comments

When trying to extract big files I run into this issue:

Error: Cannot create a string longer than 0x1fffffe8 characters

Error: Cannot create a string longer than 0x1fffffe8 characters
    at Object.readFileSync (node:fs:441:20)
    at Object.<anonymous> (.npm/_npx/c0eed260a914dd8d/node_modules/har-extractor/bin/cmd.js:50:38)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
    at Module.load (node:internal/modules/cjs/loader:1317:32)
    at Module._load (node:internal/modules/cjs/loader:1127:12)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:166:5)
    at node:internal/main/run_main_module:30:49 {
  code: 'ERR_STRING_TOO_LONG'

probably because of a limited string length: https://stackoverflow.com/questions/68230031/cannot-create-a-string-longer-than-0x1fffffe8-characters-in-json-parse

fidoriel avatar Oct 28 '24 08:10 fidoriel