We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42a4eb commit d4e8d47Copy full SHA for d4e8d47
sentry_sdk/integrations/aws_lambda.py
@@ -376,7 +376,9 @@ def _get_url(aws_event, aws_context):
376
path = aws_event.get("path", None)
377
378
headers = aws_event.get("headers")
379
- if headers is None:
+ # Some AWS Services (ie. EventBridge) set headers as a list
380
+ # or None, so we must ensure it is a dict
381
+ if not isinstance(headers, dict):
382
headers = {}
383
384
host = headers.get("Host", None)
0 commit comments