From 3ffd3825da9c57a34fe142406641373a0eabf655 Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Fri, 11 Apr 2025 17:24:58 +0000 Subject: [PATCH] Fix validation error causing 400 response Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/d4a37844-692f-4de3-b9be-1b0c92eb2eb5.jpg --- server/routes.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/routes.ts b/server/routes.ts index afbc129..fcb1030 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -997,6 +997,7 @@ export async function registerRoutes(app: Express): Promise { res.status(201).json(token); } catch (error) { if (error instanceof z.ZodError) { + console.log("API Token Validation error details:", JSON.stringify(error.errors, null, 2)); res.status(400).json({ message: "Validation error", errors: error.errors }); } else { console.error("Error creating API token:", error);