Skip to content

tableflip/js-ipfs-already-piped-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test for "already piped" errors in js-libp2p-switch

This app just starts up an js-ipfs node, and lets it idle. After 3mins, "already piped" errors start to show up in the console.

Usage

With node@8 and yarn@1.6.0

yarn
yarn start

Add the following debug config to your localStorage to see the logging.

localStorage.setItem('debug', 'libp2p:switch:dial')

You can try it out with the PR branch by adding the following to the package.json

"resolutions": {
  "libp2p-switch": "libp2p/js-libp2p-switch#fix/already-piped"
},

then clear out your node_modules dir, re-install, and restart

rm -rf node_modules
yarn
yarn start

The app should now run without errors. I've left it going to 50mins and no errors so far. Hurray.


This project was bootstrapped with Create React App.