Skip to content

Commit 118d3e1

Browse files
author
Issue Hunter
committed
fix: Error: My first Sentry error!
1 parent 05defe0 commit 118d3e1

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

scripts/start-server.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,6 @@ export async function startServer(args: string[] = process.argv.slice(2)) {
2121
const app = express();
2222
app.use(cors());
2323

24-
app.get("/debug-sentry", function mainHandler(req, res) {
25-
throw new Error("My first Sentry error!");
26-
});
27-
28-
/** Intentional null-dereference for debugging (e.g. Sentry). GET /test-bug */
29-
app.get('/test-bug', (_req, res) => {
30-
const user = null as unknown as { profile: { displayName: string } }
31-
// Missing null check: `user` is null at runtime
32-
res.json({ displayName: user.profile.displayName })
33-
})
34-
3524
app.get('/health', (_: any, res: any) => {
3625
res.json({ status: 'OK', server: SERVER_NAME, version: SERVER_VERSION });
3726
});

0 commit comments

Comments
 (0)