diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index de47cfdf6..921d3ef68 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -166,7 +166,7 @@ export async function servicesFromKubernetes() { const traefikIngressListContaino = await crd .listClusterCustomObject("traefik.containo.us", "v1alpha1", "ingressroutes") - .then((response) => response.body) + .then((response) => response.body ?? []) .catch(async (error) => { if (![403, 404].includes(error.statusCode)) { logger.error( @@ -182,7 +182,7 @@ export async function servicesFromKubernetes() { const traefikIngressListIo = await crd .listClusterCustomObject("traefik.io", "v1alpha1", "ingressroutes") - .then((response) => response.body) + .then((response) => response.body ?? []) .catch(async (error) => { if (![403, 404].includes(error.statusCode)) { logger.error(