different-ai/openwork · error
DEN_BASE_URL must be configured.
Error message
DEN_BASE_URL must be configured.
What it means
Error "DEN_BASE_URL must be configured." thrown in different-ai/openwork.
Source
Thrown at ee/packages/utils/src/den-urls.ts:21
web: string
api: string
auth: string
inference: string
mcp: string
mcpAgent: string
}
type DenUrlEnvironment = {
[key: string]: string | undefined
DEN_BASE_URL?: string
}
const DEFAULT_PROTOCOL = "https:"
function readDenBaseUrl(env: DenUrlEnvironment): string {
const value = env.DEN_BASE_URL?.trim()
if (!value) {
throw new Error("DEN_BASE_URL must be configured.")
}
return value
}
function parseDenBaseUrl(value: string): URL {
const candidate = value.includes("://") ? value : `${DEFAULT_PROTOCOL}//${value}`
const url = new URL(candidate)
if (url.protocol !== "http:" && url.protocol !== "https:") {
throw new Error("DEN_BASE_URL must use http or https.")
}
if (url.pathname !== "/" || url.search || url.hash) {
throw new Error("DEN_BASE_URL must be an origin without a path, query, or hash.")
}
return url
}
function originFromUrl(url: URL): string {
return url.origin.replace(/\/+$/, "")View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/packages/utils/src/den-urls.ts:21 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01).
Data as JSON: /api/errors/2b99a6ec86103430.
Report an issue: GitHub.