This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Description
Since upgrading to the latest in 3box, I've been seeing very long wait times or an outright hang when called box.auth.
I often see this exception which comes from the "p-some" package which is pulled in by 3box@1.20.0.
This is on rinkeby. Haven't tried mainnet.
AggregateError:
TypeError: socket.terminate is not a function
at Object.stream.destroy (webpack-internal:///./node_modules/it-ws/client.js:21:12)
at Object.close (webpack-internal:///./node_modules/libp2p-websockets/src/socket-to-conn.js:59:16)
at async Upgrader.upgradeOutbound (webpack-internal:///./node_modules/libp2p/src/upgrader.js:178:7)
at async ClassIsWrapper.dial (webpack-internal:///./node_modules/libp2p-websockets/src/index.js:45:18)
at async TransportManager.dial (webpack-internal:///./node_modules/libp2p/src/transport-manager.js:87:14)
at async eval (webpack-internal:///./node_modules/libp2p/src/dialer/dial-request.js:58:18)
at async eval (webpack-internal:///./node_modules/p-some/index.js:53:19)
at maybeSettle (webpack-internal:///./node_modules/p-some/index.js:31:11)
at eval (webpack-internal:///./node_modules/p-some/index.js:69:23)
Steps to reproduce
const box = await Box.create(web3Provider)
await box.auth(["DAOstack"], { address }).
Expect
box.auth should complete, and do so quickly, ideally in maximum 2 seconds.
Desktop (please complete the following information):
- OS: Windows 10e.g. iOS]
- Browser: chromium