discourse/discourse · error · Error

404: ${error.responseText}

Error message

404: ${error.responseText}

What it means

Error "404: ${error.responseText}" thrown in discourse/discourse.

Source

Thrown at frontend/discourse/app/adapters/rest.js:24

const ADMIN_MODELS = [
  "plugin",
  "theme",
  "embeddable-host",
  "web-hook",
  "web-hook-event",
  "flagged-topic",
];

export function Result(payload, responseJson) {
  this.payload = payload;
  this.responseJson = responseJson;
  this.target = null;
}

// We use this to make sure 404s are caught
function rethrow(error) {
  if (error.status === 404) {
    throw new Error("404: " + error.responseText);
  }
  throw error;
}

export default class RestAdapter extends EmberObject {
  primaryKey = "id";
  jsonMode = false;

  storageKey(type, findArgs, options) {
    if (options && options.cacheKey) {
      return options.cacheKey;
    }
    const hashedArgs = Math.abs(hashString(JSON.stringify(findArgs)));
    return `${type}_${hashedArgs}`;
  }

  basePath(store, type) {
    if (ADMIN_MODELS.includes(type.replace("_", "-"))) {

View on GitHub (pinned to 1b2d7253e8)

When it happens

Trigger: Thrown at frontend/discourse/app/adapters/rest.js:24 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/dad2ca8a42d8daf0. Report an issue: GitHub.