Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Adjusting ERR_FS_FILE_TOO_LARGE description for I/O Limit #55899

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kevinuehara
Copy link
Contributor

In this PR I'm fixing the ERR_FS_FILE_TOO_LARGE description.
Before the error was "An attempt has been made to read a file whose size is larger than the maximum
allowed size for a Buffer", but actually the Buffer should be I/O Limit.

This PR fixes the issue 55864 and 42497

cc: @RedYetiDev @ErickWendel @marco-ippolito

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. errors Issues and PRs related to JavaScript errors originated in Node.js core. labels Nov 17, 2024
@aduh95
Copy link
Contributor

aduh95 commented Nov 21, 2024

/cc @nodejs/fs

@jazelly
Copy link
Member

jazelly commented Nov 21, 2024

I think the proper fix for #55864 is handling multiple calls internally for files greater than 2 GB as suggested here

@@ -1358,7 +1358,7 @@ Path is a directory.
### `ERR_FS_FILE_TOO_LARGE`

An attempt has been made to read a file whose size is larger than the maximum
allowed size for a `Buffer`.
limit for an I/O operation.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth doing any of:

  1. Noting that this limit is 2GB
  2. Noting that this is due to a libuv decision/implementation detail
  3. Linking to the related libuv PR

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. errors Issues and PRs related to JavaScript errors originated in Node.js core.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants