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

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

Open
yonas opened this issue Jan 24, 2024 · 4 comments
Open

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

yonas opened this issue Jan 24, 2024 · 4 comments

Comments

@yonas
Copy link

yonas commented Jan 24, 2024

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
Copy link

Having same issue. Did you get this resolved?

@seven-of-eleven
Copy link

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
Copy link
Author

yonas commented Feb 29, 2024

@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
Copy link

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.

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

2 participants