Title: aws_lambda integration fails with empty event list · Issue #2847 · getsentry/sentry-python · GitHub
Open Graph Title: aws_lambda integration fails with empty event list · Issue #2847 · getsentry/sentry-python
X Title: aws_lambda integration fails with empty event list · Issue #2847 · getsentry/sentry-python
Description: How do you use Sentry? Self-hosted/on-premise Version 1.42.0 Steps to Reproduce Lambdas used in Stepfunctions can have an empty event list as input. If that is the case, the aws_lambda integration wrap handler fails with an IndexError be...
Open Graph Description: How do you use Sentry? Self-hosted/on-premise Version 1.42.0 Steps to Reproduce Lambdas used in Stepfunctions can have an empty event list as input. If that is the case, the aws_lambda integration ...
X Description: How do you use Sentry? Self-hosted/on-premise Version 1.42.0 Steps to Reproduce Lambdas used in Stepfunctions can have an empty event list as input. If that is the case, the aws_lambda integration ...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/2847
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"aws_lambda integration fails with empty event list","articleBody":"### How do you use Sentry?\r\n\r\nSelf-hosted/on-premise\r\n\r\n### Version\r\n\r\n1.42.0\r\n\r\n### Steps to Reproduce\r\n\r\nLambdas used in Stepfunctions can have an empty event list as input. If that is the case, the aws_lambda integration wrap handler fails with an IndexError because it is gets the first entry in the list, although it does not contain any entries. \r\n\r\nhttps://github.com/getsentry/sentry-python/blob/68b9180480388c6bbcc89d65ee56ebe0782f4395/sentry_sdk/integrations/aws_lambda.py#L85\r\n\r\n\r\n\r\n### Expected Result\r\n\r\nwrap handler should set request_data to {} if aws_event is an empty list\r\n\r\n### Actual Result\r\n\r\n[ERROR] IndexError: list index out of range\r\nTraceback (most recent call last):\r\n File \"/opt/python/sentry_sdk/integrations/aws_lambda.py\", line 85, in sentry_handler\r\n request_data = aws_event[0]","author":{"url":"https://github.com/tlorenz-reply","@type":"Person","name":"tlorenz-reply"},"datePublished":"2024-03-19T10:51:36Z","url":"https://github.com/getsentry/sentry-python/issues/2847"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d308091c-f182-d419-4f84-48bd4bef9f78 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB8C:490F1:43740A:5D4D14:6B00903F |
| html-safe-nonce | 3acd60d16252af31779d779b955fed640e0f92656054ee8c95ebc663842e517a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjhDOjQ5MEYxOjQzNzQwQTo1RDREMTQ6NkIwMDkwM0YiLCJ2aXNpdG9yX2lkIjoiOTQ0MzI0NjY0MzQ2MzE2ODYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dfeecf73bba33860ad133d57089579d64f03b234ffa8af885250ab590def4f28 |
| hovercard-subject-tag | issue:2194632533 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/2847/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ec007d7844e39538fc5ee3dbe8ab39f23b86c304df062222f81a253a286c3558/getsentry/sentry-python/issues/2847 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ec007d7844e39538fc5ee3dbe8ab39f23b86c304df062222f81a253a286c3558/getsentry/sentry-python/issues/2847 |
| og:image:alt | How do you use Sentry? Self-hosted/on-premise Version 1.42.0 Steps to Reproduce Lambdas used in Stepfunctions can have an empty event list as input. If that is the case, the aws_lambda integration ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tlorenz-reply |
| hostname | github.com |
| expected-hostname | github.com |
| None | c710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | be616a2a6ec1c609d6e002896dff5352d5c5f28b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width