Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AWS Lambda: Fix capturing errors during AWS Lambda INIT phase (#3943)
The AWS integration fails to capture errors during the INIT phase (at least in Python 3.8 and above environments). It appears tests for this were disabled after a change in AWS' own runtime environment: #3592 A change from a few months ago where it seems like string serialisation of the JSON payload was disabled and instead the `post_init_error` is invoked directly with the json payload: aws/aws-lambda-python-runtime-interface-client@a37a43a#diff-4513a869520b19ae4e30058106d7c3b5ddbb79216b5e9bd922d83389fb86c603R483 This breaks and causes an error internally when trying to parse the string back into json, and the error is actually swallowed because of `with capture_internal_exceptions()`. Co-authored-by: Anton Pirker <anton.pirker@sentry.io>
- Loading branch information