Skip to content

Exception when lambda is triggered by EventBridge Scheduler #275

Closed
@akbisw

Description

@akbisw

Expected Behavior

No exceptions

Actual Behavior

Exception thrown

Steps to Reproduce the Problem

  1. Use the new EventBridge Scheduler to invoke lambda function

Specifications

  • Datadog Lambda Layer version: 4.64.0
  • Python version: 3.9

Stacktrace

Traceback (most recent call last):
File "/var/lang/lib/python3.9/site-packages/datadog_lambda/wrapper.py", line 165, in _before
self.trigger_tags = extract_trigger_tags(event, context)
File "/var/lang/lib/python3.9/site-packages/datadog_lambda/trigger.py", line 297, in extract_trigger_tags
event_source = parse_event_source(event)
File "/var/lang/lib/python3.9/site-packages/datadog_lambda/trigger.py", line 141, in parse_event_source
cw_event_categories = event_detail and event_detail.get("EventCategories")
AttributeError: 'str' object has no attribute 'get'

Traceback (most recent call last):
File "/var/lang/lib/python3.9/site-packages/datadog_lambda/wrapper.py", line 199, in _after
status_code = extract_http_status_code_tag(self.trigger_tags, self.response)
AttributeError: '_LambdaDecorator' object has no attribute 'trigger_tags'

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions