Skip to content
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

Error displayed for js-peer example #207

Open
jjhbk opened this issue Dec 1, 2024 · 2 comments
Open

Error displayed for js-peer example #207

jjhbk opened this issue Dec 1, 2024 · 2 comments

Comments

@jjhbk
Copy link

jjhbk commented Dec 1, 2024

Screenshot 2024-12-01 055134

@2color
Copy link
Collaborator

2color commented Jan 7, 2025

Thanks for opening this issue.

This is basically due to the browser failing to get a circuit relay reservation. The reason this happens is that we only connect to a single app specific bootstrap node (12D3KooWFhXabKDwALpzqMbto94sB7rvmZ6M28hs9Y9xSopDKwQr) which is running the go-peer code.

We could fix this a number of ways:

  • Connect to DHT from the browser and do a random walk to find a random circuit relay. This will add a lot of noise, but reduce the risk of not finding a circuit relay reservation.
  • Increase the limits on the Go peer. This will likely just kick the can down the road. Provisioned resources tend to get quickly exhausted.

I recently increased the limits

resources := relayv2.DefaultResources()
resources.MaxReservations = 256
_, err = relayv2.New(h, relayv2.WithResources(resources))
if err != nil {
panic(err)
}
but since the go-peer joins the DHT, circuit relay reservations are reserved by random peers

@nopedawn
Copy link

I had a same issue, but using cargo run how do i fix this on rust ?

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

No branches or pull requests

3 participants