-
Notifications
You must be signed in to change notification settings - Fork 199
Open
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels