From 209f6604356cf52fbe4771e0e04f63db8d7ec3cd Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 19 Feb 2026 16:22:23 +0100 Subject: [PATCH] [monorepo] remove endpoints for generating a fake error (#31679) GitOrigin-RevId: d424881e6ebca157b81344705670021677f856de --- services/clsi/app.js | 11 ----------- services/project-history/app/js/Router.js | 5 ----- 2 files changed, 16 deletions(-) diff --git a/services/clsi/app.js b/services/clsi/app.js index 4b47e2bdaf..a8125be376 100644 --- a/services/clsi/app.js +++ b/services/clsi/app.js @@ -198,17 +198,6 @@ app.get( } ) -app.get('/oops', function (req, res, next) { - logger.error({ err: 'hello' }, 'test error') - res.send('error\n') -}) - -app.get('/oops-internal', function (req, res, next) { - setTimeout(function () { - throw new Error('Test error') - }, 1) -}) - app.get('/status', (req, res, next) => res.send('CLSI is alive\n')) Settings.processTooOld = false diff --git a/services/project-history/app/js/Router.js b/services/project-history/app/js/Router.js index c73839f74f..4ab965a0c5 100644 --- a/services/project-history/app/js/Router.js +++ b/services/project-history/app/js/Router.js @@ -1,4 +1,3 @@ -import OError from '@overleaf/o-error' import * as HttpController from './HttpController.js' export function initialize(app) { @@ -88,10 +87,6 @@ export function initialize(app) { app.get('/status', (req, res, next) => res.send('project-history is up')) - app.get('/oops', function (req, res, next) { - throw new OError('dummy test error') - }) - app.get('/check_lock', HttpController.checkLock) app.get('/health_check', HttpController.healthCheck)