diff --git a/source/app/web/instance.mjs b/source/app/web/instance.mjs index eb448f31..5d715895 100644 --- a/source/app/web/instance.mjs +++ b/source/app/web/instance.mjs @@ -183,7 +183,8 @@ export default async function({sandbox = false} = {}) { const {data: {resources}} = await custom.rest.rateLimit.get() if (resources) return res.status(200).json({rest: resources.core, graphql: resources.graphql, search: resources.search, login: custom.login}) - } catch (error) { + } + catch (error) { if (error.status === 401) { console.debug(`metrics/app/oauth > session ${session.substring(0, 6)} is not valid anymore, removing it from cache`) authenticated.delete(session)