Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/c274e0722bd3a203d9b15e3fa8fb217b22d6c63b You should set ROOT_URL correctly, otherwise the web may not work correctly.

fix: added proper error handler here

pull/243/head
Josh Moore 2 years ago
parent 9429fca2f7
commit c274e0722b

@ -93,7 +93,13 @@ router.get('/direct/:fakeId', async (req, res) => {
const fakeId = req.params.fakeId;
// Get the file metadata
const _data = await data.get('files', fakeId);
let _data;
try { _data = await data.get('files', fakeId); }
catch (err) {
log.error('Failed to get', fakeId);
console.error(err);
return res.status(500).send();
}
if (!_data) return res.status(404).send();
else {

Loading…
Cancel
Save