field-manual
field-manual copied to clipboard
In `04_P2P_Part_1`, `NPP.connectToPeer` got `Error: Circuit relay dial failed as addresses did not have peer id`
When I was studying the chapter of 04_P2P_Part_1
, I opened two browsers, and the node of one browser called NPP.connectToPeer("QmUExv5GFBqqMWq9PQcur4UmnEGiY99gmqZQoMgCd2C8rd")
to connect to the node of the other browser. I got Error: Circuit dial relay failed as addresses did not have peer id
.
did you solve your problem ? same thing for me
Now how is the situation, I also have this problem, which makes it can't learn later.
I had the same problem. I ended up having to implement a Webrtc-star server (https://suda.pl/free-webrtc-star-heroku/) to fix connection issues. Let me know if I can help further!
Hi @julienmalard, thanks so much for pointing to this. Do you have any example code you could share for how you implemented this in regards to the orbit-db tutorial?
No problem! Here's my code: https://github.com/reseau-constellation/ipa/blob/main/src/ipfs.ts I added a line for my specific Webrtc-star server.
No problem! Here's my code: https://github.com/reseau-constellation/ipa/blob/main/src/ipfs.ts I added a line for my specific Webrtc-star server. You would then simply pass this ipfs instance into the orbit-db instance when you create it, and all should then work.