ferristseng / rust-ipfs-api

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

add file error #60

Closed Lawliet-Chan closed 2 years ago

Lawliet-Chan commented 3 years ago

hi, I use this library in my code https://github.com/Lawliet-Chan/ipse-miner/blob/master/src/storage/ipfs.rs#L22 But it is always panic when I call this function add(). The panic is as following: image

I just run my ipfs client on my host and the file is correctly (here I print it) AND I try the 'example add_file', it is all right.
But when I run my project code, it is panic. Can you help me, please?

SionoiS commented 3 years ago

I'm not sure why it crash. Can you try ipfs-api = "0.7.2" instead of the new version.

Lawliet-Chan commented 3 years ago

I tried it but does not work yet.

ferristseng commented 3 years ago

Did you try running with RUST_BACKTRACE=1?