Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/767fc1ec3999cae469aeaba5d2a6038e45b9e286?style=split&whitespace=ignore-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Better handle homebridge errors

pull/1033/head v0.6.9
shamoon 2 years ago
parent 09fa08b037
commit 767fc1ec39

@ -64,6 +64,7 @@ async function apiCall(widget, endpoint, service) {
if (status !== 200) { if (status !== 200) {
logger.error("Error getting data from Homebridge: %s status %d. Data: %s", url, status, data); logger.error("Error getting data from Homebridge: %s status %d. Data: %s", url, status, data);
return { status, contentType, data: null, responseHeaders };
} }
return { status, contentType, data: JSON.parse(data.toString()), responseHeaders }; return { status, contentType, data: JSON.parse(data.toString()), responseHeaders };

Loading…
Cancel
Save