rust-ipfs-api icon indicating copy to clipboard operation
rust-ipfs-api copied to clipboard

Return type not checked in HTTP GET requests

Open moliholy opened this issue 6 years ago • 0 comments

When querying https://ipfs.io/ipfs/invalidhash it returns a 400 with the following body:

invalid ipfs path: invalid path "/ipfs/invalid": invalid CID: selected encoding not supported

This could be considered a failure, while the library simply returns the aforementioned string. Hence the error code should be checked to avoid this.

moliholy avatar Aug 28 '19 11:08 moliholy