question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2876747111) is greater than 2 GB

See original GitHub issue

Hi,

Am trying to upload a file of more than 2GB in size and getting the below error :

RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2876747111) is greater than 2 GB at readFileHandle (internal/fs/promises.js:273:11)

Context:

  • Playwright Version: 1.24.2
  • Operating System: MAC
  • Node.js version: v14.15.4
  • Browser: Chromium
  • Language : Typescript
  • FileSize that am uploading : 2.8 GB
await this.page.locator("div input[name='file’]").setInputFiles(filePath);

Please let me know how to resolve this issue.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
araghuvaruncommented, Aug 26, 2022

Yes. I see it is pointing to 1.20.1 version. Though I have 1.25.1 version in my local package.json, it’s taking from our project common repository and showing 1.20.1. After properly updating, it is working fine. 😃 Able to upload more than 2.5GB file as per our requirement.

npm ls playwright to check the playwright versions? - This helped. thanks !

0reactions
yury-scommented, Aug 25, 2022

I still cannot reproduce it, what is the smallest file size that fails for you?

I actually don’t see readFileHandle in the recent versions of playwright, can you run npm ls @playwright/test and npm ls playwright to check the playwright versions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

File size (3472064213) is greater than 2 GB - Stack Overflow
According to this answer on GitHub, 2GB is the limit: That is the max buffer size in node. To import larger files, the...
Read more >
File size (15344223093) is greater than 2 GB - n8n community
I need to upload files larger than 2GB to Google Drive. Share the output returned by the last node. File size (15344223093) is...
Read more >
Extent exceeds 2 GB file size limit - Enable large file support
(8897) SYSTEM ERROR: Attempted to exceed maximum size on file <pname>. ... Quota limits prevent files larger than 2GB on WINDOWS
Read more >
Attachment size exceeds the allowable limit error - Outlook
This limit applies whether you are adding one large attachment that is greater than 20 megabytes (MB) or several attachments whose sum total ......
Read more >
Max file size - Flexera Community
ISDEV : fatal error -5023: Error building table File It seems that the problem is a file size. One of the source files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found