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

"maxContentLength size of Infinity exceeded" error while using swarm-cli #509

Open
rampall opened this issue Jun 26, 2024 · 7 comments
Open

Comments

@rampall
Copy link

rampall commented Jun 26, 2024

image

@ldeffenb
Copy link

I see that error when an entire /bytes reference cannot be retrieved. Do you mind providing the full reference and which swarm (mainnet or testnet) it is on?

@Cafe137
Copy link
Collaborator

Cafe137 commented Jun 26, 2024

As per of axios/axios#4806, taking @ldeffenb 's comment into consideration, it may be that this is a lying error message when something else fails downstream.

@rampall
Copy link
Author

rampall commented Jun 26, 2024

I see that error when an entire /bytes reference cannot be retrieved. Do you mind providing the full reference and which swarm (mainnet or testnet) it is on?

317d3cfd96206a627f7985f694f11022c599723753afd838f829a5bb53b2f389 on mainnet

@ldeffenb
Copy link

Yep, swarm-cli gives the reference to the file:

swarm-cli manifest list 317d3cfd96206a627f7985f694f11022c599723753afd838f829a5bb53b2f389
d56ef37eea74dbdc60412525439922f2adaa35b62f0aaa1ae6a57aa1fc4bdabb /linuxmint-20.1-cinnamon-64bit.iso

But curl says that it's not fully retrievable, in fact, LOTS of bytes remaining to be read:

curl http://localhost:1633/bytes/d56ef37eea74dbdc60412525439922f2adaa35b62f0aaa1ae6a57aa1fc4bdabb
curl: (18) transfer closed with 834961150 bytes remaining to read

axios will give you the maxContentLength error if you try to retrieve the d56ef...dabb reference with the /bytes endpoint, or the filename included in a /bzz reference which amounts to the same retrieval after the manifest entry has been resolved.

@rampall
Copy link
Author

rampall commented Jun 26, 2024

Interesting.
The stewardship endpoint however returned isRetrievable: true for me (although it took like 9 minutes or so)

@ldeffenb
Copy link

/stewardship lies. See ethersphere/bee#4696 It doesn't check that the actual leaf data nodes are actually retrievable. Only actually fetching the data does that.

@ldeffenb
Copy link

ldeffenb commented Jun 26, 2024

That said, a -X PUT /stewardship/{reference} WILL push all required chunks, even the data leaves. It's really good if you originally pinned the content. Not so good if it has to retrieve the chunks to re-push. In the latter case, this reference will likely fail.

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

No branches or pull requests

3 participants