Closed jcoffland closed 10 years ago
I found this on the Firefox side:
PeerJS: Creating RTCPeerConnection.
peer.js (line 1117)
PeerJS: Listening for ICE candidates.
peer.js (line 1117)
PeerJS: Listening for `negotiationneeded`
peer.js (line 1117)
PeerJS: Listening for data channel
peer.js (line 1117)
PeerJS: Listening for remote stream
peer.js (line 1117)
PeerJS: Setting remote description mozRTCSessionDescription { type="offer", sdp="v=0\r\no=- 86139404090370...brtc-datachannel 1024\r\n", toJSON=toJSON()}
peer.js (line 1117)
### NEW INBOUND CONNECTION 2/2
copayBundle.js (line 2546)
### PEER REJECTED. PEER MAX LIMIT REACHED
copayBundle.js (line 2548)
PeerJS: Added ICE candidate for: 7siq7gsWZFWe6185dLjoQXpc73CBfoGfq4JzofceZQ9PMworj5
27
peer.js (line 1117)
PeerJS: Set remoteDescription: OFFER for: 7siq7gsWZFWe6185dLjoQXpc73CBfoGfq4JzofceZQ9PMworj5
peer.js (line 1117)
PeerJS: Created answer.
peer.js (line 1117)
PeerJS: Set localDescription: answer for: 7siq7gsWZFWe6185dLjoQXpc73CBfoGfq4JzofceZQ9PMworj5
peer.js (line 1117)
PeerJS: Received data channel
peer.js (line 1117)
PeerJS: Data channel connection success
peer.js (line 1117)
### CLOSING CONN FROM:7siq7gsWZFWe6185dLjoQXpc73CBfoGfq4JzofceZQ9PMworj5
copayBundle.js (line 2550)
PeerJS: Cleaning up PeerConnection to 7siq7gsWZFWe6185dLjoQXpc73CBfoGfq4JzofceZQ9PMworj5
peer.js (line 1117)
The error "PEER REJECTED. PEER MAX LIMIT REACHED" looks suspicious. Note that I don't have any other clients open but I did try to open two Copay clients in Firefox but then closed one because it couldn't connect.
Now, I'm getting the same thing if I try to connect from a second instance in Firefox.
localStorage is shared between the browser's instances. you need to connect a 2-2 wallet from 1 chrome and 1 firefox, or 1 chrome and 1 chrome in private mode.
It seems though that running two instances with the same localStorage corrupts the wallet beyond repair.
@jcoffland can we close this?
@maraoz I think the corrupted wallet issue should be fixed. Note that the wallet is irrecoverably corrupted if you do what I did. This is something that other users will be likely to run into. It would be even better if the software gave a warning or error when you do this.
Outdated by peerjs deletion
I'm trying to repeat the demo I saw Ryan give in SF today. I built Copay following the instructions with out any problems. Then I ran the server and connected with Firefox. I created a new 2 of 2 wallet, then copied the secret to a new instance in Google Chrome and tried to join the wallet. I got an error "The wallet is full". The console shows the following: