Skip to content

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

@aroman

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions