fix(monitoring): add missing url property to DNS monitors

The Node.js backend of Uptime Kuma 2.4.0 seems to crash on DNS monitors with 'Cannot read properties of null (reading length)' if the 'url' field is not explicitly set, because the API defaults it to null instead of 'https://' like the UI does.
This commit is contained in:
Murat ÖZDEMİR 2026-06-26 23:46:08 +03:00
parent c1cda0b38a
commit a7ecfc4b2d

View File

@ -264,6 +264,7 @@ def setup_uptime_kuma(dry_run=False, only=None):
"dns_resolve_server": "1.1.1.1",
"dns_resolve_type": dns_resolve_type,
"interval": interval,
"url": "https://",
}
if parent_group_id is not None:
kwargs["parent"] = parent_group_id
@ -284,6 +285,7 @@ def setup_uptime_kuma(dry_run=False, only=None):
"dns_resolve_server": "1.1.1.1",
"dns_resolve_type": dns_resolve_type,
"interval": interval,
"url": "https://",
}
if parent_group_id is not None:
kwargs["parent"] = parent_group_id