-
Notifications
You must be signed in to change notification settings - Fork 1.3k
IPFS js cant connect to ws://127.0.0.1:8081/p2p/ #3298
Comments
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 |
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: libp2p/js-libp2p-websockets#116 As this is a breaking change, it will be included in |
js-ipfs is being deprecated in favor of Helia. You can #4336 and read the migration guide. Please feel to reopen with any comments before 2023-06-05. We will do a final pass on reopened issues afterward (see #4336). |
Wanted to add as issue as discussed on stackoverflow (see link) as still in latest version.
Version:
0.50.2
Platform:
Firefox / Safari
Severity:
Low - Annoying console logging of errors, likely to effect browser / web app performance
Description:
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’t 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
The text was updated successfully, but these errors were encountered: