microsoft/vscode · error · Error

Failed to upload file: ${response.statusText}

Error message

Failed to upload file: ${response.statusText}

What it means

Error "Failed to upload file: ${response.statusText}" thrown in microsoft/vscode.

Source

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

		};

		// Use native fetch for PUT request (IFetcherService only supports GET/POST)
		const response = await fetch(url, {
			method: 'PUT',
			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 file ${path}: ${response.status} ${response.statusText} - ${errorText}`);
			throw new Error(`Failed to upload file: ${response.statusText}`);
		}
	}

	/**
	 * Get the current authenticated GitHub user.
	 */
	private async _getCurrentUser(token: string): Promise<{ login: string } | undefined> {
		try {
			const response = await this._fetcherService.fetch(
				`${this._repoConfig.apiUrl}/user`,
				{
					method: 'GET',
					callSite: 'nes-feedback-current-user',
					headers: {
						'Authorization': `Bearer ${token}`,
						'Accept': 'application/vnd.github+json',
						'X-GitHub-Api-Version': '2022-11-28',
						'User-Agent': this._fetcherService.getUserAgentLibrary()

View on GitHub (pinned to a94b963a32)

When it happens

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