different-ai/openwork · error
OpenWork Web billing lookup failed (${response.status}).
Error message
OpenWork Web billing lookup failed (${response.status}). What it means
Error "OpenWork Web billing lookup failed (${response.status})." thrown in different-ai/openwork.
Source
Thrown at ee/apps/den-web/app/(den)/dashboard/web/page.tsx:155
const access = getOrgAccessFlags(
orgContext?.currentMember.role ?? "member",
orgContext?.currentMember.isOwner ?? false,
orgContext?.roles,
);
const canPurchaseWeb = access.isAdmin;
async function requestWebBilling(expectedOrgId: string, quiet: boolean): Promise<StripeWebBilling | null> {
if (!quiet && currentOrgIdRef.current === expectedOrgId) {
setErrorRecord(null);
setBillingRecord((current) => current?.orgId === expectedOrgId ? null : current);
}
try {
const { response, payload } = await requestJson(
"/v1/billing/web",
{ method: "GET", headers: { [ORG_SCOPE_HEADER]: expectedOrgId } },
12000,
);
if (!response.ok) throw new Error(getErrorMessage(payload, `OpenWork Web billing lookup failed (${response.status}).`));
const parsed = parseStripeWebBilling(payload);
if (!parsed) throw new Error("OpenWork Web billing response was incomplete.");
if (!mountedRef.current || currentOrgIdRef.current !== expectedOrgId) return null;
setBillingRecord({ orgId: expectedOrgId, billing: parsed });
setErrorRecord(null);
return parsed;
} catch (error) {
if (!quiet && mountedRef.current && currentOrgIdRef.current === expectedOrgId) {
setErrorRecord({
orgId: expectedOrgId,
message: error instanceof Error ? error.message : "Could not load OpenWork Web billing.",
});
}
return null;
}
}
useEffect(() => {View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/web/page.tsx:155 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/e1c873191d079417.
Report an issue: GitHub.