This repository was archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
ipfs.get is not working with sharded directories #1279
Copy link
Copy link
Closed
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps upexp/wizardExtensive knowledge (implications, ramifications) requiredExtensive knowledge (implications, ramifications) requiredkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)kind/resolved-in-heliastatus/readyReady to be workedReady to be worked
Description
- Version: 0.28.2
- Platform: Mac OS X
- Subsystem: unixfs-engine
Type: Bug
Severity: High
Description:
When fetching a directory using ipfs.get (or jsipfs get), it fails with the following error:
» jsipfs get QmXNHWdf9qr7A67FZQTFVb6Nr1Vfp4Ct3HXLgthGG61qy1
Saving file(s) QmXNHWdf9qr7A67FZQTFVb6Nr1Vfp4Ct3HXLgthGG61qy1
/Users/tmp/code/js-ipfs/src/cli/commands/files/get.js:67
if (err) { throw err }
^
Error: invalid node type
at parseError (/Users/tmp/code/js-ipfs/node_modules/ipfs-api/src/utils/send-request.js:16:17)
at ClientRequest.<anonymous> (/Users/tmp/code/js-ipfs/node_modules/ipfs-api/src/utils/send-request.js:39:14)
at Object.onceWrapper (events.js:255:19)
at ClientRequest.emit (events.js:160:13)
at HTTPParser.parserOnIncomingClient (_http_client.js:548:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:115:23)
at Socket.socketOnData (_http_client.js:439:20)
at Socket.emit (events.js:160:13)
at addChunk (_stream_readable.js:269:12)
at readableAddChunk (_stream_readable.js:256:11)
Steps to reproduce the error:
# start one daemon in one terminal
jsipfs daemon
# fetch in another terminal
jsipfs get QmXNHWdf9qr7A67FZQTFVb6Nr1Vfp4Ct3HXLgthGG61qy1
Metadata
Metadata
Assignees
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps upexp/wizardExtensive knowledge (implications, ramifications) requiredExtensive knowledge (implications, ramifications) requiredkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)kind/resolved-in-heliastatus/readyReady to be workedReady to be worked