different-ai/openwork · error · Error
OpenWork Web checkout failed (${response.status}).
Error message
OpenWork Web checkout failed (${response.status}). What it means
Error "OpenWork Web checkout failed (${response.status})." thrown in different-ai/openwork.
Source
Thrown at ee/apps/den-web/app/(den)/dashboard/web/page.tsx:310
checkoutStartingRef.current = true;
setCheckoutBusy(true);
setErrorRecord(null);
try {
await runReauthableAction("openwork-web-checkout", async () => {
const { response, payload } = await requestJson(
"/v1/billing/stripe/checkout",
{
method: "POST",
headers: { [ORG_SCOPE_HEADER]: orgId },
body: JSON.stringify({ type: OPENWORK_WEB_CHECKOUT_TYPE }),
},
12000,
);
if (isExistingWebAccessResponse(response, payload)) {
await requestWebBilling(orgId, false);
return;
}
if (!response.ok) throw getRequestError(payload, response, `OpenWork Web checkout failed (${response.status}).`);
const url = payload && typeof payload === "object" && "url" in payload && typeof payload.url === "string" ? payload.url : null;
if (!url) throw new Error("OpenWork Web checkout response did not include a URL.");
if (!mountedRef.current || currentOrgIdRef.current !== orgId) {
throw new Error("The active organization changed before checkout opened. Please try again.");
}
window.location.href = url;
});
} catch (error) {
if (mountedRef.current && currentOrgIdRef.current === orgId) {
setErrorRecord({ orgId, message: error instanceof Error ? error.message : "Could not start OpenWork Web checkout." });
}
} finally {
checkoutStartingRef.current = false;
if (mountedRef.current) setCheckoutBusy(false);
}
}
async function retryBilling() {View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/web/page.tsx:310 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/fc399c61e4bee0f6.
Report an issue: GitHub.