Skip to content

Big blocks error #332

@Moogamouth

Description

@Moogamouth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions