ferristseng / rust-ipfs-api

IPFS HTTP client in Rust
Apache License 2.0
246 stars 68 forks source link

`object_links` fails for objects with no links #110

Open mrd0ll4r opened 1 year ago

mrd0ll4r commented 1 year ago

Example CID of a small file with no links: QmYPP3BovR2m8UqCZxFbdXSit6SKgExxDkFAPLqiGsap4X

object_links fails, since the response does not contain links. (or maybe something else goes wrong, I don't see the response) Interestingly, object_get works, since that maybe includes an empty links array 🙃

Not sure if you want to fix this, since the object commands are deprecated.