You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created an SNS topic that is subscribed to a lambda function and is triggered when another lambda function errors out (with [ERROR] filter). However, I am trying to test it after chalice is deployed and always receive an error.
[ERROR] KeyError: 'Records'
Traceback (most recent call last):
File "/var/task/chalice/app.py", line 1564, in __call__
event_obj = self.event_class(event, context)
File "/var/task/chalice/app.py", line 1771, in __init__
self._extract_attributes(event_dict)
File "/var/task/chalice/app.py", line 1833, in _extract_attributes
first_record = event_dict['Records'][0]
Which, as I understand, happens in decorator. My actual code doesn't even start:
I have created an SNS topic that is subscribed to a lambda function and is triggered when another lambda function errors out (with [ERROR] filter). However, I am trying to test it after chalice is deployed and always receive an error.
Which, as I understand, happens in decorator. My actual code doesn't even start:
Not sure if I'm doing something wrong or not, but wanted to share this.
The text was updated successfully, but these errors were encountered: