I’m working on a react app using IPFS to store files, currently using superagent for making the requests. I can add files no problem from the web app for example:
URL: http://127.0.0.1:5001/api/v0/add ------WebKitFormBoundary9gG5B69BhTfpMoyB Content-Disposition: form-data; name="blahblahfile.mp3"; filename="blahblahfile.mp3" Content-Type: audio/mp3 ------WebKitFormBoundary9gG5B69BhTfpMoyB--
But now i’m trying to implement an unpinning feature, which isn’t working. I make a request like the following:
and then garbage collect:
all the requests go through successfully but the item isn’t removed. One thing i think is odd is in the response for the
pin/rm request there are no pins listed in the
Pins array. My understanding is that it will return the hash you just unpinned.
I feel like it’s the
pin/rm that is failing somewhere but i’m not exactly sure where. Note that i can perform these commands in the terminal and everything get’s unpinned and garbage collected properly.
Has anybody had a similar experience? Got any tips? Let me know if you need any more info, thanks! Really loving playing with and getting to know IPFS!