different-ai/openwork · error · Error

OpenWork Web checkout response did not include a URL.

Error message

OpenWork Web checkout response did not include a URL.

What it means

Error "OpenWork Web checkout response did not include a URL." thrown in different-ai/openwork.

Source

Thrown at ee/apps/den-web/app/(den)/dashboard/web/page.tsx:312

    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() {
    if (!orgId) return;
    setReturnChecking(false);

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/web/page.tsx:312 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/7cd4958909d8356b. Report an issue: GitHub.