Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

ipfs.dag.get broken  #3689

Closed
Closed
@CSDUMMI

Description

@CSDUMMI
  • Version: ^0.55.1
  • Platform: Linux x64
  • Subsystem: dag

Severity: Critical

Description:

I executed this line:

ipfs.dag.get("bafyreic7w5xoi64ktxhrrqy3ezl3gbrip4ftlcpp37miovw4s5o3pnqj2y").then(console.log)

And got this error:

Uncaught TypeError: Cannot read property 'length' of undefined
    at encode (node_modules/multibase/src/rfc4648.js:71:28)
    at Object.encode (node_modules/multibase/src/rfc4648.js:111:14)
    at Base.encode (node_modules/multibase/src/base.js:33:23)
    at toString (node_modules/uint8arrays/to-string.js:45:29)
    at blockEvent (node_modules/ipfs-bitswap/src/notifications.js:23:38)
    at Notifications.wantBlock (node_modules/ipfs-bitswap/src/notifications.js:68:22)
    at Bitswap.get (node_modules/ipfs-bitswap/src/index.js:276:26)
    at BlockService.get (node_modules/ipfs-block-service/src/index.js:97:28)
    at IPLDResolver.get (node_modules/ipld/src/index.js:155:33)
    at get (node_modules/ipfs-core/src/components/dag/get.js:31:25)

Steps to reproduce the error:

Install v0.55.1 or higher of ipfs from npm and execute the line above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions