Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle IPFS init error if ws-star.discovery.libp2p.io connection fails #13

Open
olizilla opened this issue May 14, 2018 · 1 comment
Open

Comments

@olizilla
Copy link
Member

Just saw a peer-pad init fail with an error when it couldn't connect to wss://ws-star.discovery.libp2p.io

creating IPFS
WebSocket connection to 'wss://ws-star.discovery.libp2p.io/socket.io/?EIO=3&transport=websocket' failed: WebSocket is closed before the connection is established.
main.bundle.js:1 Error: websocket error
    at h.o.onError (0.d0c8a7cc.chunk.js:1)
    at WebSocket.ws.onerror (0.d0c8a7cc.chunk.js:1)
    at h.doClose (0.d0c8a7cc.chunk.js:1)
...

We could try again, remove ws-star from the config and try again, or just alert the user. Ideally we'd try n times with some backoff, and eventually let the user know that there is a problem finding peers, but we're retrying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant