usebruno/bruno · error · Error

Invalid Git remote URL

Error message

Invalid Git remote URL

What it means

Error "Invalid Git remote URL" thrown in usebruno/bruno.

Source

Thrown at packages/bruno-electron/src/ipc/workspace.js:606

    }
  });

  const broadcastWorkspaceConfig = (workspacePath, config) => {
    const workspaceUid = getWorkspaceUid(workspacePath);
    const isDefault = workspaceUid === 'default';
    const configForClient = prepareWorkspaceConfigForClient(config, workspacePath, isDefault);
    mainWindow.webContents.send('main:workspace-config-updated', workspacePath, workspaceUid, configForClient);
  };

  ipcMain.handle('renderer:connect-collection-to-git', async (event, workspacePath, collectionPath, remoteUrl) => {
    try {
      if (typeof remoteUrl !== 'string' || remoteUrl.trim() === '') {
        throw new Error('A Git remote URL is required');
      }

      const trimmedUrl = remoteUrl.trim();
      if (!/^(https?:\/\/|git@|ssh:\/\/|git:\/\/).+/.test(trimmedUrl)) {
        throw new Error('Invalid Git remote URL');
      }

      const updatedConfig = await setCollectionGitRemote(workspacePath, collectionPath, trimmedUrl);
      broadcastWorkspaceConfig(workspacePath, updatedConfig);
      return true;
    } catch (error) {
      throw error;
    }
  });

  ipcMain.handle('renderer:disconnect-collection-from-git', async (event, workspacePath, collectionPath) => {
    try {
      const updatedConfig = await clearCollectionGitRemote(workspacePath, collectionPath);
      broadcastWorkspaceConfig(workspacePath, updatedConfig);
      return true;
    } catch (error) {
      throw error;
    }

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Provide a valid Git URL (https:// or git@ forms).
  2. Check the URL for typos.

When it happens

Trigger: Thrown at packages/bruno-electron/src/ipc/workspace.js:606 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13). Data as JSON: /api/errors/e2f6595b1a773a5d. Report an issue: GitHub.