Wanted to add as issue as discussed on stackoverflow (see link) as still in latest version.
Version:
0.50.2
Platform:
Firefox / Safari
Low - Annoying console logging of errors, likely to effect browser / web app performance
Using IPFS I get the errors of either not allowed to run insecure content from ws://127.0.0.1:8081/p2p/Qmbut9Ywz9YEDrz8ySBSgWyJk41Uvm2QJPhwDJzJyGFsD6.
or Firefox can鈥檛 establish a connection to the server at ws://127.0.0.1:8081/p2p/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64.
Here is more on the issue and what appears to be a note towards fix
https://stackoverflow.com/questions/63563162/ipfs-js-cant-connect-to-ws-127-0-0-18081-p2p/63612116#63612116
This is caused by network peers announcing local addresses as being externally dialable and then your node trying to dial them which fails. It's annoying but safe to ignore the printed errors.
I believe the next release of libp2p will not log these errors so the problem should go away.
cc: @vasco-santos
I believe the next release of libp2p will not log these errors so the problem should go away.
The logging can't be stopped, it's a security log in browsers that's purposefully uncatchable. We are looking at adding the IP/port combo to a denylist to prevent subsequent/frequent dials to those to minimize the number of errors being logged.
do we have any progress on this ? Thanks
Yes, this will be fixed by this: https://github.com/libp2p/js-libp2p-websockets/pull/116
As this is a breaking change, it will be included in [email protected] release https://github.com/libp2p/js-libp2p/issues/655 . Once it is ready, we can bubble it up to IPFS
Most helpful comment
The logging can't be stopped, it's a security log in browsers that's purposefully uncatchable. We are looking at adding the IP/port combo to a denylist to prevent subsequent/frequent dials to those to minimize the number of errors being logged.