microsoft/vscode · error · Error
Failed to create branch: ${response.statusText}
Error message
Failed to create branch: ${response.statusText} What it means
Error "Failed to create branch: ${response.statusText}" thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/inlineEdits/vscode-node/components/nesFeedbackSubmitter.ts:580
sha: sha
};
const response = await fetch(url, {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Accept': 'application/vnd.github+json',
'Content-Type': 'application/json',
'X-GitHub-Api-Version': '2022-11-28',
'User-Agent': this._fetcherService.getUserAgentLibrary()
},
body: JSON.stringify(payload)
});
if (!response.ok) {
const errorText = await response.text();
this._logger.error(`Failed to create branch ${branchName}: ${response.status} ${response.statusText} - ${errorText}`);
throw new Error(`Failed to create branch: ${response.statusText}`);
}
}
/**
* Create a pull request from the feedback branch to main.
* @returns The URL to the created pull request.
*/
private async _createPullRequest(
token: string,
branchName: string,
username: string,
timestamp: string,
fileCount: number
): Promise<string | undefined> {
const url = `${this._repoConfig.apiUrl}/repos/${this._repoConfig.owner}/${this._repoConfig.name}/pulls`;
const payload = {
title: `NES Feedback from ${username} (${timestamp})`,View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/inlineEdits/vscode-node/components/nesFeedbackSubmitter.ts:580 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12).
Data as JSON: /api/errors/ab5c855e54965a64.
Report an issue: GitHub.