aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
768 stars 226 forks source link

CodeWhisperer: Security scans failed. CodeWhisperer timed out. #3689

Open colemvnio opened 1 year ago

colemvnio commented 1 year ago

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

bishrtabbaa commented 1 year ago

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.

ben-elsen commented 9 months ago

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)