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

thread 'main' panicked at libp2p-relay-0.17.2/src/priv_client/transport.rs:237 #5502

Open
lynic opened this issue Jul 17, 2024 · 3 comments
Open

Comments

@lynic
Copy link

lynic commented Jul 17, 2024

Summary

I'm trying to write a libp2p client and let it create to a relay server, I enabled dcutr and relay and gossibsub and kad.

Somehow it panicked, would like to request help to debug it.

Expected behavior

not panic

Actual behavior

panic

Relevant log output

Told relay its public address
Relay told us our observed address /ip4/219.78.226.76/tcp/46840
dialed to relay server
start listening on relay address /dns/vps5.xxxxxx.net/tcp/8443/p2p/12D3KooWHThNsD8z3ahmG5ihYbz3zSYtUHqLY1YiChTrZFVFZpjd/p2p-circuit
...
event: NewExternalAddrCandidate { address: "/ip4/219.78.226.76/tcp/42717" }
thread 'main' panicked at /home/vagrant/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libp2p-relay-0.17.2/src/priv_client/transport.rs:237:44:
internal error: entered unreachable code: Receiver is never dropped.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


### Possible Solution

_No response_

### Version

_No response_

### Would you like to work on fixing this bug ?

No
@jxs
Copy link
Member

jxs commented Jul 17, 2024

Hi, and thanks for the interest, do you have a reproducible case for aforementioned panic?

@lynic
Copy link
Author

lynic commented Jul 18, 2024

I'm not sure if it's related to using tokio in relay server, as in example it's using async_std.
Have anyone use tokio for relay server?

@dariusc93
Copy link
Member

Could you provide any code that you may be using for your relay server? I dont have an issue with the example or my own code so just curious is all. It shouldnt matter if youre using async-std or tokio though

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