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.

dht.findProvs: TypeError: key.toBaseEncodedString is not a function #3502

Description

@tymmesyde
  • Version: 0.53.2
  • Platform: Windows 10
  • Subsystem:

Severity: High

Description:

Unable to get providers from dht with a string cid.

Steps to reproduce the error:

Code:

const providers = await all(this.ipfs.dht.findProvs(`Qm...`));
console.log(providers);

Error:
TypeError: key.toBaseEncodedString is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)kind/supportA question or request for supportneed/analysisNeeds further analysis before proceeding

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions