Changed internal domain names and enclosured getProcesses' content in try catch block so no 500 error occur at least because of that.
This commit is contained in:
parent
ddd4e839d0
commit
447dd15e06
@ -33,9 +33,13 @@ const articles_meta = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function getProcesses() {
|
async function getProcesses() {
|
||||||
let reimu = await fetch("http://reimu.arav.home:14882/processes").then(r => r.json());
|
try {
|
||||||
let sakuya = await fetch("http://sakuya.arav.home:14882/processes").then(r => r.json());
|
let reimu = await fetch("http://reimu.arav.home.arpa:14882/processes").then(r => r.json());
|
||||||
return Object.fromEntries(Object.entries(reimu).concat(Object.entries(sakuya)));
|
let sakuya = await fetch("http://sakuya.arav.home.arpa:14882/processes").then(r => r.json());
|
||||||
|
return Object.fromEntries(Object.entries(reimu).concat(Object.entries(sakuya)));
|
||||||
|
} catch {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setRoutes() {
|
function setRoutes() {
|
||||||
|
Loading…
Reference in New Issue
Block a user