luci: luci-app-https-dns-proxy: TypeError: Cannot convert undefined or null to object

Is there an existing issue for this?

  • I have searched among all existing issues (including closed issues)

screenshots or captures

GL.iNet GL-MT6000 (Flint 2) (Target: mediatek/filogic) (Packages arch: aarch64_cortex-a53) Also happens on Dynalink DL-WRX36 (Target: qualcommax/ipq807x) (Packages arch: aarch64_cortex-a53)

OpenWrt 24.10.1 (r28597-0425664679) LuCI openwrt-24.10 branch (25.119.71430~be769af)

https-dns-proxy: 2025.03.13-r1 luci-app-https-dns-proxy: 2023.12.26-r4

Image

/etc/config/https-dns-proxy

config main 'config'
	option canary_domains_icloud '0'
	option canary_domains_mozilla '0'
	option dnsmasq_config_update '-'
	option force_dns '0'
	list force_dns_port '53'
	list force_dns_port '853'
# ports listed below are used by some
# of the dnscrypt-proxy v1 resolvers
#	list force_dns_port '553'
#	list force_dns_port '1443'
#	list force_dns_port '4343'
#	list force_dns_port '4434'
#	list force_dns_port '5443'
#	list force_dns_port '8443'
	option procd_trigger_wan6 '0'

config https-dns-proxy 'lan_1_ipv4'
	option bootstrap_dns '1.1.1.2,1.0.0.2,2606:4700:4700::1112,2606:4700:4700::1002'
        option resolver_url 'https://security.cloudflare-dns.com/dns-query'
	option listen_addr '192.168.121.1'
	option listen_port '53'
	option user 'nobody'
	option group 'nogroup'

config https-dns-proxy 'lan_1_ipv6'
	option bootstrap_dns '1.1.1.2,1.0.0.2,2606:4700:4700::1112,2606:4700:4700::1002'
        option resolver_url 'https://security.cloudflare-dns.com/dns-query'
	option listen_addr 'fd00:aaaa:aaaa:aaa0::1'
	option listen_port '53'
	option user 'nobody'
	option group 'nogroup'

Actual behaviour

http://[IP_ADDRESS]/cgi-bin/luci/admin/services/https-dns-proxy

shows error:

TypeError
Cannot convert undefined or null to object

Expected behaviour

http://[IP_ADDRESS]/cgi-bin/luci/admin/services/https-dns-proxy

loads properly.

Steps to reproduce

Login into LuCI and then open http://[IP_ADDRESS]/cgi-bin/luci/admin/services/https-dns-proxy

Additional Information

{
        "kernel": "6.6.86",
        "hostname": "[REDACTED]",
        "system": "ARMv8 Processor rev 4",
        "model": "GL.iNet GL-MT6000",
        "board_name": "glinet,gl-mt6000",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "24.10.1",
                "revision": "r28597-0425664679",
                "target": "mediatek/filogic",
                "description": "OpenWrt 24.10.1 r28597-0425664679",
                "builddate": "1744562312"
        }
}

What browsers do you see the problem on?

Chrome

Relevant log output

http://[192.168.121.1:37 Uncaught (in promise) TypeError: Cannot convert undefined or null to object
    at Object.keys (<anonymous>)
    at ClassConstructor.render (http://192.168.121.1/luci-static/resources/ui.js?v=25.119.71430~be769af-1746079068:37:577)
    at ClassConstructor.renderWidget (http://192.168.121.1/luci-static/resources/form.js?v=25.119.71430~be769af-1746079068:260:797)
    at async Promise.all (index 1)
    at async Promise.all (index 1)
    at async Promise.all (index 0)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (10 by maintainers)

Commits related to this issue

Most upvoted comments

You are missing the core dnsmasq config. It’s an anonymous section. That’s probably what this whole problem is about.

I recommend you add the following to /etc/config/dhcp

config dnsmasq