diff --git a/src/lib/dsn/fs-utils.ts b/src/lib/dsn/fs-utils.ts index a84141b3f..9360f2a48 100644 --- a/src/lib/dsn/fs-utils.ts +++ b/src/lib/dsn/fs-utils.ts @@ -17,6 +17,7 @@ import * as Sentry from "@sentry/node-core/light"; * - EPERM: Operation not permitted (e.g., file locked, or system-level restriction) * - EISDIR: Path is a directory, not a file (e.g., `.env/` directory instead of `.env` file) * - ENOTDIR: A path component is not a directory (e.g., `/file.txt/child`) + * - ETIMEDOUT: Connection timed out (e.g., transient error on network/cloud-mounted paths) * * All other errors are unexpected and should be reported to Sentry. * @@ -31,7 +32,8 @@ function isIgnorableFileError(error: unknown): boolean { code === "EACCES" || code === "EPERM" || code === "EISDIR" || - code === "ENOTDIR" + code === "ENOTDIR" || + code === "ETIMEDOUT" ); } return false;