discourse/discourse · error · Error

Download failed: ${response.status}

Error message

Download failed: ${response.status}

What it means

Error "Download failed: ${response.status}" thrown in discourse/discourse.

Source

Thrown at frontend/discourse/app/lib/download-blob.js:54

  }
  a.rel = "noopener";
  document.body.appendChild(a);
  a.click();
  document.body.removeChild(a);
  setTimeout(() => URL.revokeObjectURL(objectUrl), REVOKE_AFTER);
}

// Fetches `url` and triggers a browser download of the response body.
export default async function downloadBlob(
  url,
  { fallbackFilename, fetchOptions } = {}
) {
  const response = await fetch(url, {
    credentials: "same-origin",
    ...fetchOptions,
  });
  if (!response.ok) {
    throw new Error(`Download failed: ${response.status}`);
  }
  triggerBlobDownload(await response.blob(), {
    fallbackFilename,
    contentDisposition: response.headers.get("Content-Disposition"),
  });
}

View on GitHub (pinned to 1b2d7253e8)

When it happens

Trigger: Thrown at frontend/discourse/app/lib/download-blob.js:54 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of discourse/discourse@1b2d7253e8 (2026-08-26). Data as JSON: /api/errors/0185046c2fe4cb78. Report an issue: GitHub.