usebruno/bruno · error · Error
A Git remote URL is required
Error message
A Git remote URL is required
What it means
Error "A Git remote URL is required" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-electron/src/ipc/workspace.js:601
mainWindow.webContents.send('main:workspace-config-updated', workspacePath, correctWorkspaceUid, configForClient);
return true;
} catch (error) {
throw error;
}
});
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);View on GitHub (pinned to 9bdd81c7bd)
Solutions
- Enter a Git remote URL for the workspace before syncing.
When it happens
Trigger: Thrown at packages/bruno-electron/src/ipc/workspace.js:601 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/8d6fc0a82ecbe84d.
Report an issue: GitHub.