different-ai/openwork · error · ObservabilityConfigError

must include a hostname

Error message

must include a hostname

What it means

Error "must include a hostname" thrown in different-ai/openwork.

Source

Thrown at ee/packages/utils/src/observability.ts:168

  if (!trimmed) {
    throw new ObservabilityConfigError("service name is required")
  }
  return trimmed
}

function validateHttpUrl(value: string, envKey: string): string {
  let parsed: URL
  try {
    parsed = new URL(value)
  } catch {
    throw new ObservabilityConfigError("must be an absolute http(s) URL", envKey)
  }

  if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
    throw new ObservabilityConfigError("must use http or https", envKey)
  }
  if (!parsed.hostname) {
    throw new ObservabilityConfigError("must include a hostname", envKey)
  }

  return value
}

function validateSentryDsn(value: string): string {
  validateHttpUrl(value, "SENTRY_DSN")

  const parsed = new URL(value)
  if (!parsed.username) {
    throw new ObservabilityConfigError("must include a public key", "SENTRY_DSN")
  }

  const projectId = parsed.pathname.split("/").filter(Boolean).at(-1)
  if (!projectId) {
    throw new ObservabilityConfigError("must include a project id", "SENTRY_DSN")
  }

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at ee/packages/utils/src/observability.ts:168 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/031900f576255217. Report an issue: GitHub.