You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The "fd" argument must be of type number. Received null - Erroring in recent Node versions 20 and 21 #50979
TypeError: The "fd" argument must be of type number. Received null
at Object.write (node:fs:834:8)
at WriteStream.writeAll (node:internal/fs/streams:418:13)
at WriteStream._write (node:internal/fs/streams:477:12)
at doWrite (node:internal/streams/writable:590:12)
at clearBuffer (node:internal/streams/writable:773:7)
at WriteStream.Writable.uncork (node:internal/streams/writable:523:7)
at C:\Users\user\WebstormProjects\dirty_db\test\test-minimal.test.ts:25:22
at file:///C:/Users/user/WebstormProjects/dirty_db/node_modules/@vitest/runner/dist/index.js:135:14
at file:///C:/Users/user/WebstormProjects/dirty_db/node_modules/@vitest/runner/dist/index.js:58:26
at runTest (file:///C:/Users/user/WebstormProjects/dirty_db/node_modules/@vitest/runner/dist/index.js:663:17)
Activity
marco-ippolito commentedon Nov 30, 2023
Can you share a minimal reproducible example without 3rd party libraries and a stacktrace?
SamTV12345 commentedon Nov 30, 2023
Sure I'll create one in the next few hours. It was thrown in the dirty db implementation so it shouldn't be too hard to track that down.
SamTV12345 commentedon Nov 30, 2023
@marco-ippolito Here is the example. I just put it into a test so I can easily start it from webstorm
SamTV12345 commentedon Nov 30, 2023
Stacktrace looks like this:
stream: fix fd is null when calling clearBuffer
stream: fix fd is null when calling clearBuffer
stream: fix fd is null when calling clearBuffer