You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Stebalien api not available on most public gateways. Only ipfs.io and gateway.ipfs.io give access to api. Others return 401, 403, 404, 502 errors.
But point is that type of block is only information for gateway how to read it. And if gateway have that block with other type why do not return it as raw block if we ask it as raw block?
I can download that block and upload it as raw but this wrong way.
We're not going to add a feature specifically to allow abusing the gateway's file endpoint to download raw blocks. If the user has blocked the read-only API and only allows the /ipfs endpoint, that's their decision.
Anyways, this hack will likely "just work" once we address ipfs/specs#242. However, I don't consider this to be a desired feature of the ipfs gateway.
This allow to download file from gateways by blocks and check it hashes by simple fetch.
Example:
Qmd3Gk5XmBrywwV5sdg8K24FqwQj6qmUMrin9tTvfaJdEc - return file
f01 70 1220da6b97d622ca3a8eca04f50438984eaad72c1d3f39a7a4678d8249ba038a68dd - return file
MerkleDAG protobuf
(0x70) toraw binary
(0x55):f01 55 1220da6b97d622ca3a8eca04f50438984eaad72c1d3f39a7a4678d8249ba038a68dd - must return block with that hash
Gateway have block with that hash* but return "504 Gateway Time-out"
*sha2-256-da6b97d622ca3a8eca04f50438984eaad72c1d3f39a7a4678d8249ba038a68dd
The text was updated successfully, but these errors were encountered: