Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airbrake: 'NoneType' object is not subscriptable '@log_stream' #2687

Open
kozbo opened this issue Dec 7, 2019 · 2 comments
Open

Airbrake: 'NoneType' object is not subscriptable '@log_stream' #2687

kozbo opened this issue Dec 7, 2019 · 2 comments
Labels

Comments

@kozbo
Copy link
Contributor

kozbo commented Dec 7, 2019

33K Occurrences

/aws/lambda/dss-notify-v2-staging 'NoneType' object is not subscriptable: 
TypeError Traceback (most recent call last): 
File "/var/task/domovoi/app.py", 
line 224, in __call__ result = handler(event, context) File "/var/task/app.py", 
line 104, in launch_from_notification_queue if not notify(subscription, metadata_document, key): 
File "/var/task/domovoilib/dss/events/handlers/notify_v2.py", 
line 99, in notify 'event_type': metadata_document['event_type'], TypeError: 'NoneType' object is not subscriptable 
'@log_stream': 2019/12/06/[$LATEST]2cfeec485ad740759b2ec8cd3ba48b3c

see https://humancellatlas.airbrake.io/projects/179579/groups/2575255746272279068?dur=90d%2F1d&last_n=30&filters=%7B%22order%22%3A%22notice_count%22%2C%22resolved%22%3A%22false%22%7D&tab=overview

@xbrianh xbrianh added the BUG label Dec 7, 2019
@amarjandu
Copy link
Contributor

see https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEventViewer:group=/aws/lambda/dss-notify-v2-staging;stream=2019/12/06/[$LATEST]2cfeec485ad740759b2ec8cd3ba48b3c;start=2019-12-06T00:38:08Z

it appears that the bundle metatdata_document does not contain the field event_type in this case.

@amarjandu
Copy link
Contributor

metadata_document = None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants