diff --git a/index.js b/index.js index 47949fc3e7a242faab48d1b535233f590918a0c9..c2228ae22250eea0e653d21f1919ee78141aae2f 100644 --- a/index.js +++ b/index.js @@ -313,6 +313,9 @@ async function checkConsentForLoadCurve( } else if (err.statusCode === 403 || err.code === 403) { log('info', 'No consent for load curve') return false + } else if (err.statusCode === 404 || err.code === 404 && err.error === "no_data_found") { + log('info', 'Handling half-hour error on connection') + return false } else { throw err