EMFILE: too many open files, open '...' during generate
process
#2320
Labels
bug
Something isn't working
generate
process
#2320
Environment
Reproduction
https://github.com/manniL/nuxt-content-2320
Describe the bug
While working on my website, I noticed a crucial issue: In case there is a site that accesses a lot of files at once (in my case 50) that are also generated via nuxt content, you'll receive an
EMFILE: too many open files
error. Alternatively, aERROR [nuxt] [request error] [unhandled] [500] content.startsWith is not a function
masking the actual error.This can be solved by chunking the keys and creating a pseudo-queue, instead of using
Promise.all
herecontent/src/runtime/server/storage.ts
Line 108 in cae34d7
Will submit a PR shortly.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: