{"record":{"id":"ab5c855e54965a64","repo":"microsoft/vscode","slug":"failed-to-create-branch-response-statustext","errorCode":null,"errorMessage":"Failed to create branch: ${response.statusText}","messagePattern":"Failed to create branch: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/inlineEdits/vscode-node/components/nesFeedbackSubmitter.ts","lineNumber":580,"sourceCode":"\t\t\tsha: sha\n\t\t};\n\n\t\tconst response = await fetch(url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: {\n\t\t\t\t'Authorization': `Bearer ${token}`,\n\t\t\t\t'Accept': 'application/vnd.github+json',\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t\t'X-GitHub-Api-Version': '2022-11-28',\n\t\t\t\t'User-Agent': this._fetcherService.getUserAgentLibrary()\n\t\t\t},\n\t\t\tbody: JSON.stringify(payload)\n\t\t});\n\n\t\tif (!response.ok) {\n\t\t\tconst errorText = await response.text();\n\t\t\tthis._logger.error(`Failed to create branch ${branchName}: ${response.status} ${response.statusText} - ${errorText}`);\n\t\t\tthrow new Error(`Failed to create branch: ${response.statusText}`);\n\t\t}\n\t}\n\n\t/**\n\t * Create a pull request from the feedback branch to main.\n\t * @returns The URL to the created pull request.\n\t */\n\tprivate async _createPullRequest(\n\t\ttoken: string,\n\t\tbranchName: string,\n\t\tusername: string,\n\t\ttimestamp: string,\n\t\tfileCount: number\n\t): Promise<string | undefined> {\n\t\tconst url = `${this._repoConfig.apiUrl}/repos/${this._repoConfig.owner}/${this._repoConfig.name}/pulls`;\n\n\t\tconst payload = {\n\t\t\ttitle: `NES Feedback from ${username} (${timestamp})`,","sourceCodeStart":562,"sourceCodeEnd":598,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/inlineEdits/vscode-node/components/nesFeedbackSubmitter.ts#L562-L598","documentation":"Error \"Failed to create branch: ${response.statusText}\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/inlineEdits/vscode-node/components/nesFeedbackSubmitter.ts:580 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"a94b963a32aa9749d69504576791fa29700ae46d","analyzedAt":"2026-08-12T01:08:56.794Z","schemaVersion":2},"datasetVersion":"2026-08-12T06:17:24.410Z"}