{"record":{"id":"e2f6595b1a773a5d","repo":"usebruno/bruno","slug":"invalid-git-remote-url","errorCode":null,"errorMessage":"Invalid Git remote URL","messagePattern":"Invalid Git remote URL","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/ipc/workspace.js","lineNumber":606,"sourceCode":"    }\n  });\n\n  const broadcastWorkspaceConfig = (workspacePath, config) => {\n    const workspaceUid = getWorkspaceUid(workspacePath);\n    const isDefault = workspaceUid === 'default';\n    const configForClient = prepareWorkspaceConfigForClient(config, workspacePath, isDefault);\n    mainWindow.webContents.send('main:workspace-config-updated', workspacePath, workspaceUid, configForClient);\n  };\n\n  ipcMain.handle('renderer:connect-collection-to-git', async (event, workspacePath, collectionPath, remoteUrl) => {\n    try {\n      if (typeof remoteUrl !== 'string' || remoteUrl.trim() === '') {\n        throw new Error('A Git remote URL is required');\n      }\n\n      const trimmedUrl = remoteUrl.trim();\n      if (!/^(https?:\\/\\/|git@|ssh:\\/\\/|git:\\/\\/).+/.test(trimmedUrl)) {\n        throw new Error('Invalid Git remote URL');\n      }\n\n      const updatedConfig = await setCollectionGitRemote(workspacePath, collectionPath, trimmedUrl);\n      broadcastWorkspaceConfig(workspacePath, updatedConfig);\n      return true;\n    } catch (error) {\n      throw error;\n    }\n  });\n\n  ipcMain.handle('renderer:disconnect-collection-from-git', async (event, workspacePath, collectionPath) => {\n    try {\n      const updatedConfig = await clearCollectionGitRemote(workspacePath, collectionPath);\n      broadcastWorkspaceConfig(workspacePath, updatedConfig);\n      return true;\n    } catch (error) {\n      throw error;\n    }","sourceCodeStart":588,"sourceCodeEnd":624,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/ipc/workspace.js#L588-L624","documentation":"Error \"Invalid Git remote URL\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/ipc/workspace.js:606 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a valid Git URL (https:// or git@ forms).","Check the URL for typos."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}