lambda-warmer-py
lambda-warmer-py copied to clipboard
Request Context not found
I got such error on lambda warming and I created cloudwatch event rule as you give in example.
[ERROR] KeyError: 'requestContext'
Traceback (most recent call last):
File "/opt/python/lib/python3.8/site-packages/codeguru_profiler_agent/aws_lambda/profiler_decorator.py", line 52, in profiler_decorate
return function(event, context)
File "/opt/python/lib/python3.8/site-packages/codeguru_profiler_agent/aws_lambda/lambda_handler.py", line 91, in call_handler
return handler_function(event, context)
File "/var/task/mangum/adapter.py", line 101, in __call__
scope = self.create_scope(event, context)
File "/var/task/mangum/adapter.py", line 118, in create_scope
request_context = event["requestContext"]