Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(api): add notice regarding hostname to default 401 (#1088)

Marc Klingencdbdc0af6706
diff --git a/src/features/public-api/server/apiAuth.ts b/src/features/public-api/server/apiAuth.ts
index 100a863420..56d856b822 100644
--- a/src/features/public-api/server/apiAuth.ts
+++ b/src/features/public-api/server/apiAuth.ts
@@ -91,7 +91,9 @@ export async function verifyAuthHeaderAndReturnScope(
console.error("Error verifying auth header: ", error);
return {
validKey: false,
- error: error instanceof Error ? error.message : "Authorization error",
+ error:
+ (error instanceof Error ? error.message : "Authorization error") +
+ ". Confirm that you've configured the correct host.",
};
}
return {