dxos / gravity

System testing frameworks.
GNU Affero General Public License v3.0
1 stars 1 forks source link

Gravity - inviting more then 5 peers doesn't work #63

Closed dmaretskyi closed 3 years ago

dmaretskyi commented 3 years ago

The system hangs. Possibly when bot tries to connect to the control topic

2020-11-27T13:08:27.606Z bot-factory:99946 (node:99949) UnhandledPromiseRejectionWarning: Error: Timed out in 30000 ms.
    at Timeout.<anonymous> (/Users/dmaretskyi/Projects/work/wireline/sdk/bot/bot/node_modules/@dxos/async/src/async.js:59:14)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)
(node:99949) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:99949) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
dmaretskyi commented 3 years ago

After investigation, it looks like peer:joined event isn't being fired when peers are not directly connected in the swarm

dmaretskyi commented 3 years ago

Reproduced in https://github.com/dxos/sdk/pull/406