ipfs-shipyard / ipfs-shipyard/py-ipfs-http-client
Big blocks error
- Dominant language
- Python
- Stars
- 685
- Forks
- 200
- PR merge metrics
- No merged PRs in 30d
Description
Error: `ipfshttpclient.exceptions.ErrorResponse: produced block is over 1MiB: big blocks can't be exchanged with other peers. consider using UnixFS for automatic chunking of bigger files, or pass --allow-big-block to override`
Snippets of my code:
```
from ipfshttpclient import connect
client = connect()
new_block = client.object.new("unixfs-dir")
block = new_block
item = client.add(path, wrap_with_directory=True)
block_hash = block["Hash"]
block = client.object.patch.add_link(block_hash, id, item[len(item) - 1]["Hash"])
```
The error is coming from the final line. It only occurs when `item` is larger than 1MiB.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.