Skip to content

Missing error handling that results in wrong error #470

Closed

Description

@bladerunner2020

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:
telegram-cloud-photo-size-2-5321373976649389333-y

Activity

  1. assd12138 commented on Jul 2, 2025

    @assd12138

    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"

  2. cthackers commented on Jul 10, 2026

    @cthackers
    Owner

    Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions