mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
Bug: program writes empty IPs to updates.json - validation error- IP empty #321
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ncovercash on GitHub (Oct 16, 2023).
In the event of network failures (IP hosts unavailable, misconfigured network, IPv6 broken, etc.), the
updates.jsoncan get store empty IP addresses; when read back, the application terminates. IMO this should be warned but the invalid record ignored, rather than causing the entire thing to exit.Is this urgent: No
DNS provider(s) you use: HE.net (not applicable to bug)
Program version:
Running version latest built on 2023-10-14T09:56:50.040Z (commit e635b19)What are you using to run the container: docker-compose
Extra information (optional)
Logs:
Update file:
Host OS:
Debian bullseye
@NeoMod commented on GitHub (Oct 30, 2023):
I agree. I encountered this error just now after a drive failure brought down my pihole which in turn left my network inoperable, and I spent a good ten minutes figuring it out.
It should show a warning and then update the IP with the current one, overwriting/correcting the info on file. Or, as suggested above, it should use a dummy value to populate the field and then proceed with the update. (maybe we can use a value previously declared in a label just for this very purpose?)
EDIT: @ncovercash would you please consider editing the post to include the error in the title? (not the whole string, maybe just the "validation error- IP empty" string) It could help others in search of the same error.
@qdm12 commented on GitHub (Jan 18, 2024):
Hello there, thanks for reporting this! And sorry for the mega delay.
I'll look into this more in the coming hours/days.
My take on this is the updates.json file should never have an empty or invalid IP written to it, and we should keep the check in place. I'll check my code, there must be something wrong allowing invalid IPs to be written to that file.
@qdm12 commented on GitHub (Jan 24, 2024):
Fixed in
7f0e858fa0Duplicate of #280