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
Missing error handling that results in wrong error #470
We have a file with permissions that are not enough to read/write.
When we trying to access this file we got error:
TypeError [ERR_INVALID_ARG_TYPE] CERR_INVALID_ARG_TYPE]: The "fd" argument must be of type number. Received undefined
in adm-zip/utils/utils.js, line 118.
It seems to me the issue is due to there is no error checking in 118 line:
To everyone who get this error, it might be your write path include some character like ":" on windows.
For example, you need to use "myLogYYYY-MM-DD-HH-mm-ss.txt" rather than "myLogYYYY-MM-DD-HH:mm:ss.txt"
Activity
assd12138 commentedon Jul 2, 2025
To everyone who get this error, it might be your write path include some character like ":" on windows.
For example, you need to use "myLogYYYY-MM-DD-HH-mm-ss.txt" rather than "myLogYYYY-MM-DD-HH:mm:ss.txt"
Fixed uncaught crash in writeFileToAsync on write failure (#470, #459, …
cthackers commentedon Jul 10, 2026
Fixed