Update homebridge, autobrr, truenas, tubearchivist, watchtower, pyload widgets

This commit is contained in:
Michael Shamoon 2022-10-26 08:35:38 -07:00
parent f473d324df
commit 00163d2f44
10 changed files with 40 additions and 14 deletions

View file

@ -84,9 +84,9 @@ export default async function pyloadProxyHandler(req, res) {
if (data?.error || status !== 200) {
try {
return res.status(status).send(Buffer.from(data).toString());
return res.status(status).send({error: {message: "HTTP error communicating with Plex API", data: Buffer.from(data).toString()}});
} catch (e) {
return res.status(status).send(data);
return res.status(status).send({error: {message: "HTTP error communicating with Plex API", data}});
}
}
@ -95,7 +95,7 @@ export default async function pyloadProxyHandler(req, res) {
}
} catch (e) {
logger.error(e);
return res.status(500).send(e.toString());
return res.status(500).send({error: {message: `Error communicating with Plex API: ${e.toString()}`}});
}
return res.status(400).json({ error: 'Invalid proxy service type' });