Open colemvnio opened 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.
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))
`
``
![Schermafbeelding 2024-03-04 om 14 10 22 (2)](https://github.com/aws/aws-toolkit-jetbrains/assets/29061657/5264bf15-45e0-417e-83a2-fc272bcbd208)
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
Expected behavior It shouldn't time out, or allow me to scan portions of the code to prevent a time out.
Your Environment