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

bug: app fails to connect to local testnet on running on the same device, when the home WiFi drops #2676

Open
happybeing opened this issue Jan 28, 2025 · 2 comments
Labels
Bug Something isn't working

Comments

@happybeing
Copy link
Contributor

This looks a bit weird but worth noting I think. I'm running a Ubuntu 24 laptop connected to WiFi hotspot on my phone for 4G mobile internet. The laptop is running the local testnet and the apps I'm testing, so in theory the connection to WiFi should not be relevant.

I've had a local testnet running for days, possibly weeks and been running lots of tests of two of my own apps against it. The apps uses code very similar to the latest code from ant-cli, copied and pasted into my apps.

Today my WiFi hotspot went off unexpectedly and I could no longer connect to the local testnet on the laptop, from the same laptop. Here's the error:

Dweb Autonomi client initialising...
⢀ Connecting to a local Autonomi Network...                                                                                                                   Failed to connect to the network: Failed to populate our routing table with enough peers in time
🔗 Failed to connect to the network                                                                                                                           The application panicked (crashed).
Message:  Failed to connect to Autonomi Network: 
   0: Failed to connect to the network: Failed to populate our routing table with enough peers in time

Location:
   /home/mrh/src/autonomi/dweb/dweb-lib/src/autonomi/actions/connect.rs:52

connect.rs is copied directly from ant-cli and has been working fine for days. As soon as I reconnect the laptop to the WiFi hotspot, the problem goes away.

Also worth noting in that the connect.rs code panics when it fails to connect which is not good!

@rreive
Copy link

rreive commented Jan 28, 2025 via email

@happybeing
Copy link
Contributor Author

@rreive The code is designed to panic when it fails to connect.

@linear linear bot added the Bug Something isn't working label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants