Skip to content

ipfs.dag.get fails with a map error only in IPFS Companion #856

Closed
@dysbulic

Description

@dysbulic

Bug Description

I am using the git-remote-ipld to load git commits into IPFS. I am trying to download a zip of the repo's contents as is done in IGiS.

Running git push ipld:: master gives me ipld://QmWVVMpoyF9dRNimVnGpbioTkkgVkJGNf4FB1sH5nEGsKb, but when I pass that to ipfs.dag.get, I get an error to the console: Cannot read property 'map' of undefined.

When I use the ipfs dag get command in the terminal it returns data.

More importantly, I am able to open the cid in IGiS which uses dag.get, but doesn't use the ipfs-companion.

To Reproduce

  1. Go to https://codepen.io/dysbulic/pen/jOPJKEE
  2. View the console log to see the error.

Desktop

  • OS: Ubuntu v18.04
  • Browser: Chrome v80
  • Version: IPFS Companion v0.4.23

Metadata

Metadata

Assignees

Labels

P0Critical: Tackled by core team ASAParea/window-ipfsIssues related to IPFS API exposed on every pageeffort/daysEstimated to take multiple days, but less than a weekexp/expertHaving worked on the specific codebase is importantkind/bugA bug in existing code (including security flaws)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions