Skip to content

[docs.libp2p.io] Getting started - Js tutorial is broken #557

Closed
@kawmaiparis

Description

Version: node version: v12.14.1
Platform: Ubuntu 19.10

Type: Question
Severity: Low

Description:
Following the Getting started tutorial on the official Libp2p website, I am stuck with this error when I run "node src/index.js" for the first time.

(node:14122) UnhandledPromiseRejectionWarning: TypeError: Expected String
at decodeUnsafe (/home/paris/DeFi/hello-libp2p/node_modules/base-x/src/index.js:63:45)
at Object.decode (/home/paris/DeFi/hello-libp2p/node_modules/base-x/src/index.js:110:18)
at Object.fromB58String (/home/paris/DeFi/hello-libp2p/node_modules/multihashes/src/index.js:68:27)
at Function.exports.createFromJSON (/home/paris/DeFi/hello-libp2p/node_modules/peer-id/src/index.js:265:17)
at Function.PeerInfo.create (/home/paris/DeFi/hello-libp2p/node_modules/peer-info/src/index.js:48:27)
at createPeer (/home/paris/DeFi/hello-libp2p/src/index.js:7:14)
at Object. (/home/paris/DeFi/hello-libp2p/src/index.js:41:1)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
(node:14122) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:14122) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Metadata

Assignees

No one assigned

    Labels

    P1High: Likely tackled by core team if no one steps updxDeveloper Experiencekind/bugA bug in existing code (including security flaws)status/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions