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: ENAMETOOLONG: name too long, open #107

Open
mgifford opened this issue May 30, 2022 · 2 comments
Open

Error: ENAMETOOLONG: name too long, open #107

mgifford opened this issue May 30, 2022 · 2 comments

Comments

@mgifford
Copy link

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

@calebeby
Copy link
Member

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.

@mgifford
Copy link
Author

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.

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