You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform: Linux odesenfans-desktop 5.13.0-28-generic 20.04.1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
Subsystem: Peer Routing
Severity: Low
Description:
The _findClosestPeersTask task from the peer routing module throws an error when no peer is connected. I am using the JS libp2p daemon for an application and I noticed errors in the logs when starting the daemon in debug mode:
libp2p:peer-routing:err Error: not found
libp2p:peer-routing:err at requirePeers (/usr/lib/node_modules/libp2p-daemon/node_modules/libp2p/src/content-routing/utils.js:65:19)
libp2p:peer-routing:err at processTicksAndRejections (node:internal/process/task_queues:96:5)
libp2p:peer-routing:err at async PeerRouting.getClosestPeers (/usr/lib/node_modules/libp2p-daemon/node_modules/libp2p/src/peer-routing.js:165:5)
libp2p:peer-routing:err at async drain (/usr/lib/node_modules/libp2p-daemon/node_modules/it-drain/index.js:12:20)
libp2p:peer-routing:err at async PeerRouting._findClosestPeersTask (/usr/lib/node_modules/libp2p-daemon/node_modules/libp2p/src/peer-routing.js:87:7)
libp2p:peer-routing:err at async _runPeriodically (/usr/lib/node_modules/libp2p-daemon/node_modules/set-delayed-interval/src/index.js:17:7)
This is caused by a call to requirePeers without specifying min, which defaults to 1. This is not a huge issue because the task runs periodically anyway, but the error log seems unwarranted for the situation.
The easiest way to reproduce the issue is to use the JS daemon directly, even if the issue seems unrelated to it.
npm install --global [email protected]
DEBUG=libp2p* jsp2pd --listen /ip4/127.0.0.1/tcp/2220 --hostAddrs /ip4/127.0.0.1/tcp/2222
# Wait for the error log
The text was updated successfully, but these errors were encountered:
Version: 0.36.2
Platform: Linux odesenfans-desktop 5.13.0-28-generic 20.04.1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
Subsystem: Peer Routing
Severity: Low
Description:
The
_findClosestPeersTask
task from the peer routing module throws an error when no peer is connected. I am using the JS libp2p daemon for an application and I noticed errors in the logs when starting the daemon in debug mode:This is caused by a call to
requirePeers
without specifyingmin
, which defaults to 1. This is not a huge issue because the task runs periodically anyway, but the error log seems unwarranted for the situation.The easiest way to reproduce the issue is to use the JS daemon directly, even if the issue seems unrelated to it.
The text was updated successfully, but these errors were encountered: