microsoft/vscode · error · Error

Task API unarchiveTask returned an empty response.

Error message

Task API unarchiveTask returned an empty response.

What it means

Error "Task API unarchiveTask returned an empty response." thrown in microsoft/vscode.

Source

Thrown at extensions/copilot/src/extension/chatSessions/vscode-node/taskApiBackend.ts:559

		const result = await this._request<AgentTaskCreatePullRequestResponse>('POST', 'create-pr', { owner, repo, taskId });
		if (!result) {
			throw new Error(l10n.t('Task API createPRForTask returned an empty response.'));
		}
		return result;
	}

	async archiveTask(_owner: string, _repo: string, taskId: string): Promise<AgentTask> {
		const task = await this._request<AgentTask>('POST', 'archive', { taskId });
		if (!task) {
			throw new Error(l10n.t('Task API archiveTask returned an empty response.'));
		}
		return task;
	}

	async unarchiveTask(_owner: string, _repo: string, taskId: string): Promise<AgentTask> {
		const task = await this._request<AgentTask>('POST', 'unarchive', { taskId });
		if (!task) {
			throw new Error(l10n.t('Task API unarchiveTask returned an empty response.'));
		}
		return task;
	}
}

type AgentTaskRequestAction = 'create' | 'list' | 'list-for-repo' | 'get' | 'events' | 'steer' | 'create-pr' | 'archive' | 'unarchive';

function toSearchParams(opts: ListTasksOptions | ListTaskEventsOptions | undefined): Record<string, string | number | boolean> | undefined {
	if (!opts) {
		return undefined;
	}
	const result: Record<string, string | number | boolean> = {};
	for (const [key, value] of Object.entries(opts)) {
		if (value !== undefined && value !== null) {
			result[key] = value as string | number | boolean;
		}
	}
	return Object.keys(result).length > 0 ? result : undefined;

View on GitHub (pinned to a94b963a32)

When it happens

Trigger: Thrown at extensions/copilot/src/extension/chatSessions/vscode-node/taskApiBackend.ts:559 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/eeed368cdc48702a. Report an issue: GitHub.