https://github.com/tableflip/js-ipfs-already-piped-error
a test app for https://github.com/ipfs/js-ipfs/issues/1366
https://github.com/tableflip/js-ipfs-already-piped-error
Last synced: 11 months ago
JSON representation
a test app for https://github.com/ipfs/js-ipfs/issues/1366
- Host: GitHub
- URL: https://github.com/tableflip/js-ipfs-already-piped-error
- Owner: tableflip
- Created: 2018-05-30T13:15:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T23:05:22.000Z (about 8 years ago)
- Last Synced: 2025-02-15T12:46:47.657Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 150 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
- Issue: https://github.com/libp2p/js-libp2p-switch/issues/235
- PR: https://github.com/libp2p/js-libp2p-switch/pull/262
## Usage
With `node@8` and `yarn@1.6.0`
```
yarn
yarn start
```
Add the following debug config to your localStorage to see the logging.
```js
localStorage.setItem('debug', 'libp2p:switch:dial')
```
You can try it out with the PR branch by adding the following to the package.json
```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](https://github.com/facebookincubator/create-react-app).