different-ai/openwork · error · ObservabilityConfigError

must include a public key

Error message

must include a public key

What it means

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

Source

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

    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")
  }

  return value
}

function parseUnitInterval(raw: string, envKey: string): number {
  const value = Number(raw)
  if (!Number.isFinite(value) || value < 0 || value > 1) {
    throw new ObservabilityConfigError("must be a number from 0 through 1", envKey)
  }
  return value
}

View on GitHub (pinned to 2b7df46e8a)

When it happens

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