Skip to content

@sentry/cloudflare crashes DurableObjects due to unsafe & unnecessary proxying of waitUntil() #17514

Description

@aroman

Which SDK are you using?

@sentry/cloudflare

SDK Version

9.40.0

we are seeing sentry's cloudflare SDK frequently cause infinite recursion issues with DurableObjects.

production stacktrace:
Image

source code referenced:

Image

link to repo source: https://github.com/getsentry/sentry-javascript/blame/12528ec04ce752db6e800f2d577c3d7fcda3d24b/packages/cloudflare/src/flush.ts#L22

this code is broken and unnecessary

there is no reason (ever) to call waitUntil() inside a DurableObject. it is a no-op; please see the documentation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions