Skip to content

Infinite loop with GET /__nextjs_original-stack-frame requests on Next.js dev mode #17369

@jsardev

Description

@jsardev

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

10.3.0

Framework Version

Next 15.3.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://github.com/jsardev/sentry-nextjs-infinite-loop

  1. Enter test dsn values
  2. Run the app via pnpm dev
  3. Visit / route

Steps to Reproduce

This issue occurs whenever you're on dev mode and run Sentry.captureException() within a Next.js layout.tsx

Expected Result

No infinite loop

Actual Result

Infinite GET /__nextjs_original-stack-frame requests

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions