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

end of file before message length reached #1

Open
0xmichalis opened this issue Jan 17, 2025 · 0 comments
Open

end of file before message length reached #1

0xmichalis opened this issue Jan 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@0xmichalis
Copy link
Owner

0xmichalis commented Jan 17, 2025

IPFS downloads can fail with the following error:

  INFO Downloading image from ipfs://bafybeidsz746vlhz5l46o4k4v4svkh3q3clo2qd5f4ghbzkro55aofsjhe
Error: request or response body error: error reading a body from connection: end of file before message length reached

Caused by:
    0: error reading a body from connection: end of file before message length reached

Unclear why exactly it happens, likely an issue with the currently used IPFS gateway reaching these files but it can happen almost consistently with the tokens:

zora = [
    "0x1698e9789d7cb10c90408963f473d59fc303ccb7:1",
    "0xbf2416c86016e72b345545714231545b9f60aaf7:1",
]

One option is to rotate IPFS gateways, another option is to use an IPFS client to do the download instead of doing HTTP downloads via IPFS gateways. Long term, it's likely best to use an IPFS client.

@0xmichalis 0xmichalis added the bug Something isn't working label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant