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

When IP is not detected, it tries to set empty one #16

Open
michnovka opened this issue Sep 10, 2024 · 1 comment
Open

When IP is not detected, it tries to set empty one #16

michnovka opened this issue Sep 10, 2024 · 1 comment

Comments

@michnovka
Copy link

I found this in my logs:

2024-09-10 18:15:39
ERROR 2024/09/10 18:29:08 dock.xxx.net Get "https://dynamicdns.park-your-domain.com/update?host=dock&domain=xxx.net&password=XXXX&ip=": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024-09-10 18:15:39
ERROR 2024/09/10 18:30:38 dock.xxx.net Get "https://dynamicdns.park-your-domain.com/update?host=dock&domain=xxx.net&password=XXXX&ip=": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

which implies it tried to set an empty IP

@michnovka
Copy link
Author

Maybe the issue lies here:
https://github.com/navilg/namecheap-ddns-docker/blob/master/updaterecord.go#L32

I would assume after an error is detected the script should break, not continue. As it likely just goes on and uses empty string for IP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant