microsoft/vscode · error · Error

Failed to create pull request: ${response.statusText}

Error message

Failed to create pull request: ${response.statusText}

What it means

Error "Failed to create pull request: ${response.statusText}" thrown in microsoft/vscode.

Source

Thrown at extensions/copilot/src/extension/inlineEdits/vscode-node/components/nesFeedbackSubmitter.ts:623

				`This feedback was automatically submitted via the "Copilot: Submit NES Feedback" command.`
		};

		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 pull request: ${response.status} ${response.statusText} - ${errorText}`);
			throw new Error(`Failed to create pull request: ${response.statusText}`);
		}

		const prData = await response.json() as { html_url: string };
		return prData.html_url;
	}

	/**
	 * Create a file in the private feedback repository on a specific branch.
	 * Uses native fetch API since IFetcherService only supports GET/POST,
	 * but GitHub Contents API requires PUT for file creation.
	 */
	private async _createFileInRepo(
		path: string,
		content: string,
		token: string,
		username: string,
		timestamp: string,
		branch: string

View on GitHub (pinned to a94b963a32)

When it happens

Trigger: Thrown at extensions/copilot/src/extension/inlineEdits/vscode-node/components/nesFeedbackSubmitter.ts:623 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/b6cf81c108971419. Report an issue: GitHub.