Skip to content

AWS Lambda Integration crash: local variable 'timeout_thread' referenced before assignment #974

Closed
@ghost

Description

Environment:

After handling an exception and sending it to sentry.io, sentry handler crashes with:

    UnboundLocalError: local variable 'timeout_thread' referenced before assignment
    Traceback (most recent call last):
       File "/usr/local/lib/python3.8/dist-packages/sentry_sdk/integrations/aws_lambda.py", line 160, in sentry_handler
        if timeout_thread:

Sentry event does appear on sentry.io, so it was successfully sent before this error. However this error acts as a lambda request failure as far as the ric and rie are concerned.

Metadata

Metadata

Assignees

No one assigned

    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