aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.47k stars 408 forks source link

The requested operation is not recognized by the service. #3505

Closed sungamma closed 1 year ago

sungamma commented 1 year ago

Problem

I write a prompt in test.py. # Write a quicksort And then I type Alt+C, codewhisperer shows "Wating for Codewhisperer..." And then it shows"The requested operation is not recognized by the service." image

Expected behavior

System details (run the AWS: About Toolkit command)

TheMostVexingParse commented 1 year ago

image

I used to get the same error message.

I solved it by first authenticating through the "Connect to AWS" option and then authenticating again through the "Start" option under the CodeWhisperer section.

sungamma commented 1 year ago

thank you,it works for me

sungamma commented 1 year ago

Athough it worked by this method, but It would be nice to have an official fix

justinmk3 commented 1 year ago

The next release will include https://github.com/aws/aws-toolkit-vscode/pull/3498 which should fix this issue.