running into an issue with dino in my latest setup. When getting the zones from API the request result triggers an Exception in dino
pdns-server-mysql | 2021-12-17T08:21:59.114295366Z Dec 17 08:21:59 [webserver] 5930c55f-a4f4-4b2f-8d93-b516ce512bbb Result for "/api/v1/servers/localhost/zones": 200, body length: 26911
pdns-server-mysql | 2021-12-17T08:21:59.116869686Z Dec 17 08:21:59 [webserver] 5930c55f-a4f4-4b2f-8d93-b516ce512bbb 172.16.238.4:53216 "GET /api/v1/servers/localhost/zones HTTP/1.1" 200 27269
django_1 | 2021-12-17T08:21:59.494418135Z Internal Server Error: /zones
django_1 | 2021-12-17T08:21:59.494523021Z Traceback (most recent call last):
django_1 | 2021-12-17T08:21:59.494558397Z File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 34, in inner
django_1 | 2021-12-17T08:21:59.494589453Z response = get_response(request)
django_1 | 2021-12-17T08:21:59.494619285Z File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 115, in _get_response
django_1 | 2021-12-17T08:21:59.494649873Z response = self.process_exception_by_middleware(e, request)
django_1 | 2021-12-17T08:21:59.494679771Z File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 113, in _get_response
django_1 | 2021-12-17T08:21:59.494710317Z response = wrapped_callback(request, *callback_args, **callback_kwargs)
django_1 | 2021-12-17T08:21:59.494740377Z File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 71, in view
django_1 | 2021-12-17T08:21:59.494770641Z return self.dispatch(request, *args, **kwargs)
django_1 | 2021-12-17T08:21:59.494800329Z File "/usr/local/lib/python3.9/site-packages/django/contrib/auth/mixins.py", line 85, in dispatch
django_1 | 2021-12-17T08:21:59.494830917Z return super().dispatch(request, *args, **kwargs)
django_1 | 2021-12-17T08:21:59.494860821Z File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 97, in dispatch
django_1 | 2021-12-17T08:21:59.494920557Z return handler(request, *args, **kwargs)
django_1 | 2021-12-17T08:21:59.494955105Z File "/app/dino/zoneeditor/views.py", line 45, in get
django_1 | 2021-12-17T08:21:59.494985381Z return super().get(request, *args, **kwargs)
django_1 | 2021-12-17T08:21:59.495015279Z File "/usr/local/lib/python3.9/site-packages/django/views/generic/list.py", line 142, in get
django_1 | 2021-12-17T08:21:59.495045597Z self.object_list = self.get_queryset()
django_1 | 2021-12-17T08:21:59.495075339Z File "/app/dino/zoneeditor/views.py", line 63, in get_queryset
django_1 | 2021-12-17T08:21:59.495105357Z self._refresh_zones()
django_1 | 2021-12-17T08:21:59.495134871Z File "/app/dino/zoneeditor/views.py", line 59, in _refresh_zones
django_1 | 2021-12-17T08:21:59.495165711Z Zone.import_from_powerdns(pdns().get_zones())
django_1 | 2021-12-17T08:21:59.495195501Z File "/app/dino/pdns_api/__init__.py", line 51, in get_zones
django_1 | 2021-12-17T08:21:59.495225585Z return [
django_1 | 2021-12-17T08:21:59.495254871Z File "/app/dino/pdns_api/__init__.py", line 52, in <listcomp>
django_1 | 2021-12-17T08:21:59.495285705Z self._decode_name(z.name)
django_1 | 2021-12-17T08:21:59.495315129Z File "/app/dino/pdns_api/__init__.py", line 44, in _decode_name
django_1 | 2021-12-17T08:21:59.495345123Z return idna.decode(name)
django_1 | 2021-12-17T08:21:59.495374787Z File "/usr/local/lib/python3.9/site-packages/idna/core.py", line 390, in decode
django_1 | 2021-12-17T08:21:59.495404967Z s = ulabel(label)
django_1 | 2021-12-17T08:21:59.495471819Z File "/usr/local/lib/python3.9/site-packages/idna/core.py", line 297, in ulabel
django_1 | 2021-12-17T08:21:59.495503091Z check_label(label_bytes)
django_1 | 2021-12-17T08:21:59.495532869Z File "/usr/local/lib/python3.9/site-packages/idna/core.py", line 228, in check_label
django_1 | 2021-12-17T08:21:59.495567765Z raise IDNAError('Empty Label')
django_1 | 2021-12-17T08:21:59.495598311Z idna.core.IDNAError: Empty Label
django_1 | 2021-12-17T08:21:59.508143129Z [17/Dec/2021 08:21:59] "GET /zones HTTP/1.0" 500 115225
from my limited knowledge I would think that one domain in the list does not make dino happy. It's only the domain listing affected. I can see the zone in dino if going to zones/MY_DOMAIN.tld
How can I best narrow down which domain in the result causes the issue? There about 100 domains in my pdns :-)
running into an issue with dino in my latest setup. When getting the zones from API the request result triggers an Exception in dino
from my limited knowledge I would think that one domain in the list does not make dino happy. It's only the domain listing affected. I can see the zone in dino if going to
zones/MY_DOMAIN.tldHow can I best narrow down which domain in the result causes the issue? There about 100 domains in my pdns :-)
I'm using
PowerDNS Authoritative Server 4.5.1is that is important