Lissy93 / AdGuardian-Term

🛡️ Terminal-based, real-time traffic monitoring and statistics for your AdGuard Home instance
https://adguardian.as93.net
MIT License
901 stars 37 forks source link

unexpected character '.' while parsing major version number #21

Open yonas opened 5 months ago

yonas commented 5 months ago
Checking for updates...
AdGuardian is up-to-date, running version 1.6.0

Starting initialization checks...
ADGUARD_IP is set to test.lan
ADGUARD_PORT is set to 8888
ADGUARD_PROTOCOL is set to http
ADGUARD_USERNAME is set to admin
ADGUARD_PASSWORD is set to ******

Verifying connection to your AdGuard instance...
thread 'main' panicked at /home/yonas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/adguardian-1.6.0/src/welcome.rs:75:69:
called `Result::unwrap()` on an `Err` value: Error("unexpected character '.' while parsing major version number")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

OS: FreeBSD 14.0 AdGuardian-Term: 1.6.0

seven-of-eleven commented 4 months ago

Having same issue. Did you get this resolved?

seven-of-eleven commented 4 months ago

I hacked the.cargo/registry/src/index.crates.io-6f17d22bba15001f/adguardian-1.6.0/src/welcome.rs file by changing line 75 from:

 let adguard_version = Version::parse(&version_str[1..]).unwrap();

to

let adguard_version = Version::parse(version_str).unwrap();

with some help from ChatGPT. I then rebuilt adguardian with:

cargo install adguardian --force

After that running the app worked for me. Just be aware that I have no expertise to know if this is good coding or not.

yonas commented 4 months ago

@seven-of-eleven I'm not able to reproduce this now.

I'm getting another error: error sending request for url (http://127.0.0.1:5553/control/status): operation timed out

seven-of-eleven commented 4 months ago

To me that looks like an error connecting to your adguardhome instance. Check your IP, port number... try a ping test to ensure you can "see" the server.

Best of luck.