-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protocol selection failed testing new protocol (Chat) #8
Comments
@brokenprogrammer thanks for reporting Interesting. Your output shows one additional listening address. My (working) output is: Listener ready, listening on:
/ip4/192.168.81.23/tcp/63688/p2p/QmZzRKpVkhE1oF2uh526VuSGK6UebxrRFK4RFg91p8UtWF
/ip4/127.0.0.1/tcp/63688/p2p/QmZzRKpVkhE1oF2uh526VuSGK6UebxrRFK4RFg91p8UtWF I'm fumbling in the dark here, so will have to investigate, but maybe it has something to do with your network settings. |
Also, @brokenprogrammer did you only run one instance on your computer? The line Discovered: {peerId} indicates that you discovered a peer, which seems a bit strange. |
Additional info: Seems likely that the issue is due to @brokenprogrammer having multicast enabled on his computer (using mdns with zeroconf). Will test this theory later, when I have a bit more time. EDIT: The reason for this seems to be that port 5353 is the designated port for mdns. Other users have had similar issues with running multiple services on this protocol, though unrelated to libp2p |
@brokenprogrammer I added a simplified Can you please pull it (latest commit on branch |
Interestingly, the peer that your computer discovered is the IPFS peer running on my computer: This somewhat proves that we will be able to use this as a discovery mechanism for a on-prem installation of the feldmanchain, but it also shows that a libp2p peer defaults to a configuration compatible with IPFS. This is reasonable since they are behind this lib. Probably something to look into further though. I also doubt this has something to do with the actual issue discussed in this thread. I will turn off the node while testing. |
@brokenprogrammer I actually think I am chasing ghosts, and that I should learn to read error messages. The exception you posted points to async Libp2p.<anonymous> (.../feldmanchain-on-prem/src/peer.js:48:22) which corresponds to the line const { stream } = await node.dialProtocol(peerId, "/chat/1.0.0") In that context, the error message does make sense, since in the code, we attempt to dial in to the protocol |
I am quite certain I know what is happening now:
If this is correct, you should be able to try this tomorrow and expect it to work (since my IPFS peer now is turned off). Please be aware that you do not discover any peer when running just one instance of the script. This does not, however, explain why it failed on your other computer, since, if I understand it correctly, that one is not connected to the office net? |
I see that makes sense, I never ran it on my personal computer only on my work pc. |
Ok, great, hopefully it works now then! |
Tried to run the application and got the following error message:
The text was updated successfully, but these errors were encountered: