different-ai/openwork · error · Error

identity lookup failed

Error message

identity lookup failed

What it means

Error "identity lookup failed" thrown in different-ai/openwork.

Source

Thrown at ee/apps/diagnostics/app/connections/incident-filters.tsx:34

export function IncidentFilters(props: IncidentFiltersProps) {
  const [error, setError] = useState<string | null>(null)
  const [busy, setBusy] = useState(false)

  const submit = async (event: FormEvent<HTMLFormElement>) => {
    event.preventDefault()
    setBusy(true)
    setError(null)
    try {
      const data = new FormData(event.currentTarget)
      const organization = String(data.get("organization") ?? "").trim()
      const client = String(data.get("client") ?? "").trim()
      const response = await fetch("/api/connections/identity", {
        body: JSON.stringify({ organization: organization || undefined, client: client || undefined }),
        headers: { "content-type": "application/json" },
        method: "POST",
      })
      if (!response.ok) throw new Error("identity lookup failed")
      const identity = await response.json() as {
        organizationHash: string | null
        clientHash: string | null
      }
      const query = new URLSearchParams()
      if (identity.organizationHash) query.set("organization", identity.organizationHash)
      if (identity.clientHash) query.set("client", identity.clientHash)
      for (const name of ["source", "phase", "outcome", "code", "hours"]) {
        const value = String(data.get(name) ?? "").trim()
        if (value) query.set(name, value)
      }
      if (props.unstableOnly) query.set("view", "unstable")
      window.location.assign(`/connections?${query.toString()}`)
    } catch {
      setError("Could not apply the identity filters. Sign in again, then retry.")
      setBusy(false)
    }
  }

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at ee/apps/diagnostics/app/connections/incident-filters.tsx:34 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/2f284774b48a0f97. Report an issue: GitHub.