Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support large DAGs #7

Open
olizilla opened this issue Jul 3, 2018 · 1 comment
Open

Support large DAGs #7

olizilla opened this issue Jul 3, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@olizilla
Copy link
Member

olizilla commented Jul 3, 2018

There are CIDs out there that are too large for ipld-explorer to work with

$ ipld-explorer
? > cd zdpuAqN6LUsggXfSWDhAzmnLAkWFztsR1w1QhKr7mBp2wfBMK
✖ Source is too large

but ipfs dag get works on them, so we could show some info about them

$ ipfs dag get zdpuAqN6LUsggXfSWDhAzmnLAkWFztsR1w1QhKr7mBp2wfBMK
{"0":{"/":"zdpuAmom34jdkZ8cYWowodaA9Lx7NTKbFkDXaQjhdhDaSCm8L"},"1":{"/":"zdpuB1Eb3qmesCB1pnFf5mgtuy9TXenov8dBHJCK2SdugAsWd"},"10":{"/":"zdpuAriYPSrxsxFFeiJ8egm9Esaica12AQBssX1S3aSmqRkh3"},"100":...
@olizilla olizilla added the enhancement New feature or request label Jul 3, 2018
@alanshaw
Copy link
Member

More context:

? > cd zdpuAqN6LUsggXfSWDhAzmnLAkWFztsR1w1QhKr7mBp2wfBMK
  ipld-explorer-cli:repl cd [ 'zdpuAqN6LUsggXfSWDhAzmnLAkWFztsR1w1QhKr7mBp2wfBMK' ] +0ms
⠋   ipld-explorer-cli:eval cd [ 'zdpuAqN6LUsggXfSWDhAzmnLAkWFztsR1w1QhKr7mBp2wfBMK' ] +0ms
  ipld-explorer-cli:commands:cd /ipfs/zdpuAqN6LUsggXfSWDhAzmnLAkWFztsR1w1QhKr7mBp2wfBMK +0ms
  ipld-explorer-cli:lib:ipld get zdpuAqN6LUsggXfSWDhAzmnLAkWFztsR1w1QhKr7mBp2wfBMK  +17s
  ipfs-api:request POST 127.0.0.1:5001/api/v0/block/get?arg=zdpuAqN6LUsggXfSWDhAzmnLAkWFztsR1w1QhKr7mBp2wfBMK&stream-channels=true 200 OK +17s
  ipld-explorer-cli:print RangeError: Source is too large
  ipld-explorer-cli:print     at Uint8Array.set (<anonymous>)
  ipld-explorer-cli:print     at Decoder._decode (/Users/alan/Code/protocol-labs/ipld-explorer-cli/node_modules/borc/src/decoder.js:552:17)
  ipld-explorer-cli:print     at Decoder.decodeFirst (/Users/alan/Code/protocol-labs/ipld-explorer-cli/node_modules/borc/src/decoder.js:576:10)
  ipld-explorer-cli:print     at Object.exports.deserialize (/Users/alan/Code/protocol-labs/ipld-explorer-cli/node_modules/ipld-dag-cbor/src/util.js:103:28)
  ipld-explorer-cli:print     at waterfall (/Users/alan/Code/protocol-labs/ipld-explorer-cli/node_modules/ipld/src/index.js:376:18)
  ipld-explorer-cli:print     at nextTask (/Users/alan/Code/protocol-labs/ipld-explorer-cli/node_modules/ipld/node_modules/async/waterfall.js:16:14)
  ipld-explorer-cli:print     at next (/Users/alan/Code/protocol-labs/ipld-explorer-cli/node_modules/ipld/node_modules/async/waterfall.js:23:9)
  ipld-explorer-cli:print     at /Users/alan/Code/protocol-labs/ipld-explorer-cli/node_modules/ipld/node_modules/async/internal/onlyOnce.js:12:16
  ipld-explorer-cli:print     at streamToValue (/Users/alan/Code/protocol-labs/ipld-explorer-cli/node_modules/ipfs-api/src/block/get.js:49:11)
  ipld-explorer-cli:print     at concat (/Users/alan/Code/protocol-labs/ipld-explorer-cli/node_modules/ipfs-api/src/utils/stream-to-value.js:12:22) +0ms
✖ RangeError: Source is too large

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants