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

ipfs-car cannot get hash of large car file it created #158

Closed
ianconsolata opened this issue Nov 29, 2023 · 0 comments · Fixed by #162
Closed

ipfs-car cannot get hash of large car file it created #158

ianconsolata opened this issue Nov 29, 2023 · 0 comments · Fixed by #162

Comments

@ianconsolata
Copy link

I created a car file of a large folder using ipfs-car. However, when I later call ipfs-car to get the hash of that file, I get an error that the file is too large.

Steps to reproduce:

~/data
❯ ipfs-car pack mit-ocw --output mit-ocw-hash-test.car
bafybeifbua4aqsuiuqobeu7gxccyqx26ckxzxu5fdxermjrahimp65aiay

~/data 24s
❯ ipfs-car hash mit-ocw-hash-test.car
node:internal/fs/promises:526
    throw new ERR_FS_FILE_TOO_LARGE(size);
          ^

RangeError [ERR_FS_FILE_TOO_LARGE]: File size (16911159405) is greater than 2 GiB
    at readFileHandle (node:internal/fs/promises:526:11)
    at async Module.hash (file:///Users/i/.nvm/versions/node/v21.2.0/lib/node_modules/ipfs-car/cmd/hash.js:13:13) {
  code: 'ERR_FS_FILE_TOO_LARGE'
}

Node.js v21.2.0

~/data
❯ ls -l
-rw-r--r--@   1 i  staff  16911159405 Nov 29 14:04 mit-ocw-hash-test.car
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant