Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Chat browser example crashes bootstrap on message #240

Open
HexaField opened this issue Jun 24, 2020 · 0 comments
Open

Chat browser example crashes bootstrap on message #240

HexaField opened this issue Jun 24, 2020 · 0 comments
Labels
exp/expert Having worked on the specific codebase is important kind/bug A bug in existing code (including security flaws) status/ready Ready to be worked

Comments

@HexaField
Copy link

Running Ubuntu 18.04.4 LTS and nodejs 14.4.0 and libp2p 0.28.0

Running chat example on browser will crash the bootstrap when sending a message.

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: Ice connection failed.
    at makeError (/home/josh/Desktop/js-libp2p-examples/chat/nodejs/node_modules/simple-peer/index.js:18:38)
    at Peer._onIceStateChange (/home/josh/Desktop/js-libp2p-examples/chat/nodejs/node_modules/simple-peer/index.js:681:20)
    at RTCPeerConnection.Peer._pc.oniceconnectionstatechange (/home/josh/Desktop/js-libp2p-examples/chat/nodejs/node_modules/simple-peer/index.js:116:12)
    at /home/josh/Desktop/js-libp2p-examples/chat/nodejs/node_modules/wrtc/lib/eventtarget.js:37:18
    at Set.forEach (<anonymous>)
    at /home/josh/Desktop/js-libp2p-examples/chat/nodejs/node_modules/wrtc/lib/eventtarget.js:33:15
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
Emitted 'error' event on Peer instance at:
    at Peer._destroy (/home/josh/Desktop/js-libp2p-examples/chat/nodejs/node_modules/simple-peer/index.js:461:19)
    at Peer.destroy (/home/josh/Desktop/js-libp2p-examples/chat/nodejs/node_modules/simple-peer/index.js:404:10)
    at Peer._onIceStateChange (/home/josh/Desktop/js-libp2p-examples/chat/nodejs/node_modules/simple-peer/index.js:681:12)
    at RTCPeerConnection.Peer._pc.oniceconnectionstatechange (/home/josh/Desktop/js-libp2p-examples/chat/nodejs/node_modules/simple-peer/index.js:116:12)
    [... lines matching original stack trace ...]
    at processTicksAndRejections (internal/process/task_queues.js:79:11) {
  code: 'ERR_ICE_CONNECTION_FAILURE'
}

@jacobheun jacobheun transferred this issue from libp2p/js-libp2p-examples Jul 9, 2020
@jacobheun jacobheun added kind/bug A bug in existing code (including security flaws) exp/expert Having worked on the specific codebase is important status/ready Ready to be worked labels Jul 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
exp/expert Having worked on the specific codebase is important kind/bug A bug in existing code (including security flaws) status/ready Ready to be worked
Projects
None yet
Development

No branches or pull requests

2 participants