Skip to content

Request Context not found  #27

Description

@apptechxonia

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"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions