GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify ERR_FS_FILE_TOO_LARGE to reflect fs.readFile() I/O limit · nodejs/node@7d747ae

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • errors.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/errors.md‎

Copy file name to clipboardExpand all lines: doc/api/errors.md
+4-2Lines changed: 4 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1368,8 +1368,10 @@ Path is a directory.
13681368

13691369
### `ERR_FS_FILE_TOO_LARGE`
13701370

1371-
An attempt has been made to read a file whose size is larger than the maximum
1372-
allowed size for a `Buffer`.
1371+
An attempt was made to read a file larger than the supported 2 GiB limit for
1372+
`fs.readFile()`. This is not a limitation of `Buffer`, but an internal I/O constraint.
1373+
For handling larger files, consider using `fs.createReadStream()` to read the
1374+
file in chunks.
13731375

13741376
<a id="ERR_FS_INVALID_SYMLINK_TYPE"></a>
13751377

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.