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

Fix from getting "ValueError: '{IP}\n' does not appear to be an IPv4 or IPv6 address" error #63

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

Kryvochyi
Copy link
Contributor

The script was not working and I was getting the error mentioned in the message.

It seemed that the IP strings the script was receiving had new line characters at their ends, strange.

Fixed by changing lines 72 and 88 in porkbun_ddns.py from "response.read().decode("utf-8"))" to "response.read().decode("utf-8")).strip()".

…or IPv6 address" error

The script was not working and I was getting the error mentioned in the message.

It seemed that the IP strings the script was receiving had new line characters at their ends, strange.

Fixed by changing lines 72 and 88 in porkbun_ddns.py from "response.read().decode("utf-8"))" to "response.read().decode("utf-8")).strip()".
@mietzen mietzen enabled auto-merge September 20, 2024 04:15
@mietzen mietzen merged commit e06c01f into mietzen:main Sep 20, 2024
13 checks passed
@mietzen
Copy link
Owner

mietzen commented Sep 20, 2024

Thank you for your contribution 👍

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

Successfully merging this pull request may close these issues.

2 participants