You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Server cache not refreshing when sendDefaultPii: true since @sentry/nextjs@9.43 (DYNAMIC_SERVER_USAGE error) #17431
Upgrade @sentry/nextjs from 9.42 (works) to 9.43+ (issue persists in 10.5).
Build the app and navigate to a page with revalidate set.
Observe that x-nextjs-cache transitions from STALE → HIT.
However, Server Component data does not update.
Console error:
-- [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] { digest: 'DYNAMIC_SERVER_USAGE' }
-- cache-control response header has s-maxage=30 (unexpected).
Downgrade back to 9.42 → issue disappears.
In sentry.server.config.ts, setting sendDefaultPii: false also resolves the issue.
Also seeing this. A good way to reproduce is with a route which uses some static path params and a dynamic params fallback. The paths associated to the static params are pregenerated fine but hitting the route with a dynamic param will surface the error immediately so you don't need to wait on revalidate times. Disabling sendDefaultPii also fixes for me.
Thanks for confirming. I'm leaning towards entirely reverting the logic for extracting the url in webpack as this will never work for turbopack due to missing build instrumentation. We'll likely need to find a different approach here that works for both bundlers.
Activity
linear commentedon Aug 18, 2025
JS-872 Server cache not refreshing when sendDefaultPii: true since @sentry/nextjs@9.43 (DYNAMIC_SERVER_USAGE error)
Lms24 commentedon Aug 21, 2025
Hi, thanks for writing in! We'll take a look at this next week (Sentry is doing a company-wide hackathon ("Hackweek") this week).
cbovis commentedon Aug 25, 2025
Also seeing this. A good way to reproduce is with a route which uses some static path params and a dynamic params fallback. The paths associated to the static params are pregenerated fine but hitting the route with a dynamic param will surface the error immediately so you don't need to wait on revalidate times. Disabling
sendDefaultPiialso fixes for me.chargome commentedon Aug 25, 2025
Are you referring to setting
next: { revalidate: SOME_NUMBER }?Also I could not reproduce it, can someone create a reproduction repository for this?
13 remaining items
chargome commentedon Sep 24, 2025
@karlkeefer are you building your app with webpack or turbopack?
karlkeefer commentedon Sep 24, 2025
@chargome we are using webpack.
chargome commentedon Sep 24, 2025
Thanks for confirming. I'm leaning towards entirely reverting the logic for extracting the url in webpack as this will never work for turbopack due to missing build instrumentation. We'll likely need to find a different approach here that works for both bundlers.
fyi @RulaKhaled
fix(nextjs): Stop accessing sync props in template (#18113)
github-actions commentedon Nov 10, 2025
A PR closing this issue has just been released 🚀
This issue was referenced by PR #18113, which was included in the 10.24.0 release.