Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

In 04_P2P_Part_1, NPP.connectToPeer got Error: Circuit relay dial failed as addresses did not have peer id #147

Open
zhiquan911 opened this issue Jul 8, 2021 · 6 comments

Comments

@zhiquan911
Copy link

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.

@lilian131
Copy link

did you solve your problem ? same thing for me

@Gezi-lzq
Copy link

Now how is the situation, I also have this problem, which makes it can't learn later.

@julienmalard
Copy link
Contributor

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!

@phonofidelic
Copy link
Contributor

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?

@julienmalard
Copy link
Contributor

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.

@julienmalard
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants