Kong/insomnia · error

Commit must have a message

Error message

Commit must have a message

What it means

Error "Commit must have a message" thrown in Kong/insomnia.

Source

Thrown at packages/insomnia-vcs/src/vcs.ts:674

  async merge(candidates: StatusCandidate[], otherBranchName: string, snapshotMessage?: string) {
    const branch = await this._getCurrentBranch();
    console.log(`[sync] Merged branch ${otherBranchName} into ${branch.name}`);
    return this._merge(candidates, branch.name, otherBranchName, snapshotMessage);
  }

  async takeSnapshot(name: string) {
    const stage = clone<Stage>(this._stageByBackendProjectId[this._backendProjectId()] || {});

    // Ensure there is something on the stage
    if (Object.keys(stage).length === 0) {
      throw new Error('No changes to commit. Please stage your changes first.');
    }

    const branch: Branch = await this._getCurrentBranch();
    const parent: Snapshot | null = await this._getLatestSnapshot(branch.name);

    if (!name) {
      throw new Error('Commit must have a message');
    }

    const newState = applyStageToState(parent ? parent.state : [], stage);

    const snapshot = await this._createSnapshotFromState(branch, newState, name);

    // Clear the staged changes
    for (const key of Object.keys(stage)) {
      delete stage[key];
    }
    this._stageByBackendProjectId[this._backendProjectId()] = stage;
    console.log(`[sync] Created commit ${snapshot.id} (${name})`);
  }

  async pull({
    candidates,
    teamId,
    teamProjectId,

View on GitHub (pinned to d9bb2b0142)

When it happens

Trigger: Thrown at packages/insomnia-vcs/src/vcs.ts:674 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26). Data as JSON: /api/errors/24d0450f1a420f07. Report an issue: GitHub.