aws / aws/aws-toolkit-vscode

Encountered an unexpected error when processing the request, please try again When run /review command

Open
#6,505 3 comments 0 reactions 0 assignees View on GitHub
amazon-q bug needs-response
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Problem
Every time I execute the `/review` command, no matter review the entire workspace or the active file. Q Dev tells me "Encountered an unexpected error when processing the request, please try again".

I checked the Amazon Q log, and here is the error msg

```
2025-02-05 20:42:40.847 [info] auth: Connection is valid: 1e4a9141-b670-4f15-a9a2-6621f7e83496
2025-02-05 20:42:40.847 [info] auth: Updating connection state of 1e4a9141-b670-4f15-a9a2-6621f7e83496 to valid
2025-02-05 20:42:46.154 [info] Command: (not started) [git rev-parse --is-inside-work-tree]
2025-02-05 20:42:46.190 [info] Command: (not started) [git ls-files --others --exclude-standard]
2025-02-05 20:42:46.212 [info] Command: (not started) [git diff HEAD --src-prefix=a/utils/ --dst-prefix=b/utils/]
2025-02-05 20:42:46.239 [info] Command: (not started) [git diff --no-index --src-prefix=a/utils/ --dst-prefix=b/utils/ /dev/null idc_users.csv]
2025-02-05 20:42:49.150 [error] Security scan failed. 'Error: [UploadArtifactToS3Error]'
```

## Steps to reproduce the issue

1. Open the Chat Panel
2. type `/review` in the input box and select Review workspace

## Expected behavior

Review without prompting me the error msg.

## System details (run `AWS: About` and/or `Amazon Q: About`)

- OS: Darwin arm64 24.2.0
- Visual Studio Code version:1.96.4
- AWS Toolkit version: N/A
- Amazon Q version: 1.45.0

Contributor guide

Open the contributing guide

Research direction

Start with the VS Code /review command and reproduce a workspace review using the reported Amazon Q version. Trace the security scan failure reported as UploadArtifactToS3Error and verify that both workspace and active-file reviews complete without the unexpected error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, git, typescript, vscode
Domain
cloud, devtools, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.