From e6a0caa88dd31a611f93e600b446e1ae6069ebc2 Mon Sep 17 00:00:00 2001 From: Tino Breddin Date: Wed, 29 May 2024 10:37:59 +0200 Subject: [PATCH] debug: test all 404 paths --- server/client_log.ts | 1 + server/index.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/client_log.ts b/server/client_log.ts index a53a741..4594a84 100644 --- a/server/client_log.ts +++ b/server/client_log.ts @@ -6,6 +6,7 @@ export class ClientLog { async fetch(request: WorkerRequest) { const url = new URL(request.url); + console.log("URL in client_logs", url); if (url.pathname == "/websocket") { if (request.headers.get("Upgrade") != "websocket") { return new Response("expected websocket", { status: 400 }); diff --git a/server/index.ts b/server/index.ts index 0c0ddb9..175ade0 100644 --- a/server/index.ts +++ b/server/index.ts @@ -62,7 +62,8 @@ export async function handleRequest( await logsObject.fetch(url, request.clone()); return fetchLogo(tokenLogoUrl, request); } - return new Response("Not found", { status: 404 }); + console.log("NOT FOUND 0", url.hostname, url.pathname, path); + return new Response("Not found", { status: 404 }); } if (path[0] == "clientlogs") {