Closed cycorax12 closed 3 years ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
It looks like you've stored a JSON file in IPFS as a file. You need to read it as a file with https://pkg.go.dev/github.com/ipfs/go-ipfs-http-client#HttpApi.Unixfs.
Specifically, api.Unixfs().Get(ctx, path)
.
I am using infura go-ipfs-http-client to get data for given path. I get data, but when unmarshalling json to Struct it fails with below error
Code:
Response received in "data" field
Do we need to perform some decoding etc?