Prismo
Prismo9mo ago

Netlify function EMFILE

If this is a dumb question just point me in the direction of the stackoverflow. I've scoured discord and github issues to see if I can find any similar issues to no avail. I've got a t3 server set up right now with a few TRPC method calls from the frontend to the backend. Everything is fine locally where my open file limit has not been modified from my stock OS config. But when I run my function (which is just grabbing prisma data and returning) I get this error.
Nov 7, 02:35:51 PM: 99a16755 INFO [GET] /api/trpc/METHOD_NAME(SSR)
Nov 7, 02:35:51 PM: 99a16755 Duration: 39.69 ms Memory Usage: 200 MB
Nov 7, 02:35:53 PM: f42f46e2 ERROR [Error: EMFILE: too many open files, open '/var/task/node_modules/@trpc/server/dist/config-7eddc5bb.mjs'] {
errno: -24,
code: 'EMFILE',
syscall: 'open',
path: '/var/task/node_modules/@trpc/server/dist/config-7eddc5bb.mjs'
}
Nov 7, 02:35:53 PM: f42f46e2 INFO [GET] /api/trpc/METHOD_NAME(SSR)
Nov 7, 02:35:53 PM: f42f46e2 Duration: 2847.76 ms Memory Usage: 139 MB
Nov 7, 02:35:58 PM: e0a96bce ERROR [Error: EMFILE: too many open files, open '/var/task/node_modules/@trpc/server/dist/config-7eddc5bb.mjs'] {
errno: -24,
code: 'EMFILE',
syscall: 'open',
path: '/var/task/node_modules/@trpc/server/dist/config-7eddc5bb.mjs'
}
Nov 7, 02:35:58 PM: e0a96bce INFO [GET] /api/trpc/METHOD_NAME(SSR)
Nov 7, 02:35:58 PM: e0a96bce Duration: 147.20 ms Memory Usage: 145 MB
Nov 7, 02:35:51 PM: 99a16755 INFO [GET] /api/trpc/METHOD_NAME(SSR)
Nov 7, 02:35:51 PM: 99a16755 Duration: 39.69 ms Memory Usage: 200 MB
Nov 7, 02:35:53 PM: f42f46e2 ERROR [Error: EMFILE: too many open files, open '/var/task/node_modules/@trpc/server/dist/config-7eddc5bb.mjs'] {
errno: -24,
code: 'EMFILE',
syscall: 'open',
path: '/var/task/node_modules/@trpc/server/dist/config-7eddc5bb.mjs'
}
Nov 7, 02:35:53 PM: f42f46e2 INFO [GET] /api/trpc/METHOD_NAME(SSR)
Nov 7, 02:35:53 PM: f42f46e2 Duration: 2847.76 ms Memory Usage: 139 MB
Nov 7, 02:35:58 PM: e0a96bce ERROR [Error: EMFILE: too many open files, open '/var/task/node_modules/@trpc/server/dist/config-7eddc5bb.mjs'] {
errno: -24,
code: 'EMFILE',
syscall: 'open',
path: '/var/task/node_modules/@trpc/server/dist/config-7eddc5bb.mjs'
}
Nov 7, 02:35:58 PM: e0a96bce INFO [GET] /api/trpc/METHOD_NAME(SSR)
Nov 7, 02:35:58 PM: e0a96bce Duration: 147.20 ms Memory Usage: 145 MB
0 Replies
No replies yetBe the first to reply to this messageJoin