different-ai/openwork · error · ObservabilityConfigError
must be a number from 0 through 1
Error message
must be a number from 0 through 1
What it means
Error "must be a number from 0 through 1" thrown in different-ai/openwork.
Source
Thrown at ee/packages/utils/src/observability.ts:193
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
}
function parseOtelProtocol(env: ObservabilityEnv, envKey: string, fallback: OTelProtocol): OTelProtocol {
const protocol = envValue(env, envKey)
if (protocol === undefined) {
return fallback
}
if (protocol === "http/protobuf") {
return protocol
}
throw new ObservabilityConfigError("must be http/protobuf", envKey)
}
function parseOtelExporter(env: ObservabilityEnv, envKey: string): OTelSignalExporter {View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/packages/utils/src/observability.ts:193 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/f9ebe70c5fd419ec.
Report an issue: GitHub.