Skip to content

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

@happybeing

Description

@happybeing

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions