lighthouse-parade
lighthouse-parade copied to clipboard
Error: ENAMETOOLONG: name too long, open
Sometimes clients can have pretty long file names. Is it possible to expand the defaults?
Currently I'm excluding it with --exclude-path-glob
So often GET strings can get totally out of control: ?combine=&items_per_page=&items_per_page_option
Can you post a screenshot of the stack trace? Lighthouse-parade does not itself impose a max URL length, but it is likely that one or several of the libraries we use does.
Thanks @calebeby I had to change the names to protect the client, but this is the error I was getting:
✔ https://somewebsite.com/examples/Long-Forms/Long-Forms
✔ https://somewebsite.com/examples/Long-Forms/Long-Forms/Long-Forms-List?combine=&items_per_page=&items_per_page_options%5B5%5D=5+per+page&items_per_page_options%5B10%5D=10+per+page&items_per_page_options%5B25%5D=25+per+page&items_per_page_options%5B50%5D=50+per+page&items_per_page_options%5B100%5D=100+per+page&order=dlf_2_form_title&sort=asc
⠧ https://somewebsite.com/examples/Long-Forms/Long-Forms/Long-Forms-List?combine=&items_per_page=&items_per_page_options%5B5%5D=5+per+page&items_per_page_options%5B10%5D=10
+per+page&items_per_page_options%5B25%5D=25+per+page&items_per_page_options%5B50%5D=50+per+page&items_per_page_options%5B100%5D=100+per+page&order=dlf_3_revision_dat
e&sort=asc
node:fs:487
handleErrorFromBinding(ctx);
^
Error: ENAMETOOLONG: name too long, open '/Users/me/lighthouse-parade-data/2022-05-31T17_36_35/reports/https--www_somewebsite_com-examples-Long-Forms-Long-Forms-Long-Forms-Listcombine=&items_per_page=&items_per_page_options%5B5%5D=5+per+page&items_per_page_options%5B10%5D=10+per+page&items_per_page_options%5B25%5D=25+per+page&items_per_page_options%5B50%5D=50+per+pag.csv'
at Object.openSync (node:fs:487:3)
at Object.writeFileSync (node:fs:1492:35)
at /Users/me/.npm/_npx/c941991c2de2861d/node_modules/lighthouse-parade/dist/cli.js:189:12
at /Users/me/.npm/_npx/c941991c2de2861d/node_modules/lighthouse-parade/dist/emitter.js:18:17
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:93:5) {
errno: -63,
syscall: 'open',
code: 'ENAMETOOLONG',
path: '/Users/me/lighthouse-parade-data/2022-05-31T17_36_35/reports/https--www_somewebsite_com-examples-Long-Forms-Long-Forms-Long-Forms-Listcombine=&items_per_page=&items_per_page_options%5B5%5D=5+per+page&items_per_page_options%5B10%5D=10+per+page&items_per_page_options%5B25%5D=25+per+page&items_per_page_options%5B50%5D=50+per+pag.csv'
}
Was a bit annoying as I had to crawl a semi-large site again in order to get it again.