aws-toolkit-jetbrains icon indicating copy to clipboard operation
aws-toolkit-jetbrains copied to clipboard

CodeWhisperer: Security scans failed. CodeWhisperer timed out.

Open colemvnio opened this issue 1 year ago • 2 comments

Describe the bug Upon starting a security scan on one of our projects, after a few moments, CodeWhisperer times out without any further details.

To reproduce

  1. Login CodeWhisperer
  2. Start a Security Scan, with a significant project(monolith for example)
  3. Patiently wait
  4. Times out.

Expected behavior It shouldn't time out, or allow me to scan portions of the code to prevent a time out.

Your Environment

  • OS: Mac M1 Pro
  • JetBrains product: Webstorm
  • JetBrains product version: 2023.1
  • AWS Toolkit version:1.67-231
  • SAM CLI version: N/A
  • JVM/Python version: N/A

colemvnio avatar May 24 '23 19:05 colemvnio

I can reproduce this error on a simple Python file. The error message is unhelpful.

Expected Behavior: it works Expected Behavior: more helpful error message so that we can actually diagnose and resolve the error.

bishrtabbaa avatar Jul 12 '23 22:07 bishrtabbaa

I have a similar problem. I have a timeout on every scan that I try, however the size.

For example on this code:

from aws_cdk import aws_events_targets as targets
from aws_cdk.aws_events import Rule
from aws_cdk.aws_lambda import IFunction
from aws_cdk.aws_stepfunctions import IStateMachine
from constructs import Construct


class EventManagementAndNotification(Construct):
    def __init__(
        self,
        scope: Construct,
        id: str,
        processing_workflow: IStateMachine,
        queue_worker_lambda: IFunction
    ) -> None:
        super().__init__(scope, id)


        ##########################################################
        # Trigger when the processing workflow finishes
        ##########################################################

        rule = Rule(
            self,
            'TriggerQueueWorker',
            event_pattern={
                "source": ["aws.states"],
                "detail_type": ["Step Functions Execution Status Change"],
                "detail": {
                    "status": ["SUCCEEDED", "FAILED", "TIMED_OUT", "ABORTED"],
                    "stateMachineArn": [processing_workflow.state_machine_arn]
                }
            }
        )

        rule.add_target(targets.LambdaFunction(queue_worker_lambda))
`
``

![Scherm­afbeelding 2024-03-04 om 14 10 22 (2)](https://github.com/aws/aws-toolkit-jetbrains/assets/29061657/5264bf15-45e0-417e-83a2-fc272bcbd208)

ben-elsen avatar Mar 04 '24 13:03 ben-elsen