Revenge of the Missing peerId
and its sidekick, already piped
#1366
Description
- Version: 0.28.1
- Platform: Firefox 60.0.1
- Subsystem: Unknown
Type: Bug
Severity: Low
Description:
This is related to #1221 and probably to the issues @shessenauer reported there a few days ago. I am opening a new issue since this is in the browser, and since I am using js-ipfs v0.28.1, which has a fix for #1221. WRONG! This version predates that fix! It looks like the fix hasn't made it to a release yet.
I am working on https://interfect.github.io/ipfstunes/
I am getting this in my browser console:
uncaught exception: AssertionError: Missing peerId. Use Peer.create(cb) to create one
And also this (with a stacktrace):
Error: already piped
It only happens when I give one node a reason to talk to another, by adding some songs in one browser and then opening the URL with fragment identifier in another browser and trying to play them.
I'm seeing the messages on both the sending and receiving browser. I'm also experiencing very slow file transfer between the browsers, and I suspect the two phenomena might be related.
Here's a stack trace for the already piped
error:
Error: already piped
ipfs.js:51632:13
sink
https://interfect.github.io/ipfstunes/lib/ipfs.js:51632:13
consume
https://interfect.github.io/ipfstunes/lib/ipfs.js:76086:17
consume
https://interfect.github.io/ipfstunes/lib/ipfs.js:76086:17
consume
https://interfect.github.io/ipfstunes/lib/ipfs.js:76086:17
pull
https://interfect.github.io/ipfstunes/lib/ipfs.js:69916:7
handle
https://interfect.github.io/ipfstunes/lib/ipfs.js:204460:5
attemptMuxerUpgrade
https://interfect.github.io/ipfstunes/lib/ipfs.js:208185:7
gotWarmedUpConn
https://interfect.github.io/ipfstunes/lib/ipfs.js:208082:7
Ipfs</dial/<
https://interfect.github.io/ipfstunes/lib/ipfs.js:208068:9
Ipfs</dial/<
https://interfect.github.io/ipfstunes/lib/ipfs.js:203766:7
Ipfs</</module.exports/</<
https://interfect.github.io/ipfstunes/lib/ipfs.js:209951:24
run
https://interfect.github.io/ipfstunes/lib/ipfs.js:68437:13
runIfPresent
https://interfect.github.io/ipfstunes/lib/ipfs.js:68466:21
onGlobalMessage
https://interfect.github.io/ipfstunes/lib/ipfs.js:68506:17
Steps to reproduce the error:
- Have two browsers
- Open https://interfect.github.io/ipfstunes/ in one
- Hit Browse and import some MP3 files
- Wait for the import to finish
- Copy the resulting URL (with fragment identifier) from the first browser to the second
- Wait for the second browser to find the first and successfully download the song database
- Hit Search in the second browser (to search for the empty string)
- Click on some results in the list
- Click the play button
- Wait for the second browser to (slowly!) download and play the songs you selected from the first browser
- The reported error(s) should appear from time to time in both browser consoles