Added proper handling of internal errors (should be no 500s anywhere)

This commit is contained in:
Kristy Fournier 2026-01-26 12:30:08 -05:00
parent 2002dd1afa
commit fce09edfc5
2 changed files with 75 additions and 61 deletions

View file

@ -38,7 +38,6 @@ async function getFromServer(bodyInfo, source="",password=adminPass) {
// the currently set password is always included in every request
bodyInfo["password"] = password;
}
// console.log(bodyInfo);
const response = await fetch("http://"+ip+"/"+source, {
method: "POST",
body: JSON.stringify(bodyInfo),