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
import * as Sentry from '@sentry/nextjs'
Sentry.init({
dsn: 'https://ec343f96933dc8a577ac9237c6907690@o1013545.ingest.us.sentry.io/4507178042589184',
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
})
Steps to Reproduce
I'm not really sure if it's related to CloudFlare pages, but it's where I can reproduce not being able to see any errors produced by RSCs. Anyway, I just have this simply test route in app/sentry-example-page/page.tsx:
export const runtime = 'edge'
export default async function Page() {
throw new Error('Sentry Example API Route Error')
}
Expected Result
An error being reported in sentry.
Actual Result
No error is being reported in Sentry (except for a frontend error due to the error component being rendered, but the error info is missing here which is expected (see #9474)).
Interestingly, app router API routes are reported correctly, but RSC errors are not.
The text was updated successfully, but these errors were encountered:
Oh I see. Since it's "just" NextJS I figured it just works. Actually the frontend and the app dir API routes already work perfectly fine, just RSCs don't it seems (and I haven't tested if server actions work). Anyway this issue might then be considered official CloudFlare Pages with NextJS request. 😅 And thanks for the pointer to toucan-js!
steebchen
changed the title
CloudFlare pages does not report app router / RSC errors
CloudFlare pages with NextJS support (specifically RSCs)
May 7, 2024
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
@sentry/nextjs 7.113.0
Framework Version
@sentry/nextjs 7.113.0
Link to Sentry event
https://polar-lights.sentry.io/issues/5299066015/?project=4507178042589184&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=14d&stream_index=0
SDK Setup
Steps to Reproduce
I'm not really sure if it's related to CloudFlare pages, but it's where I can reproduce not being able to see any errors produced by RSCs. Anyway, I just have this simply test route in
app/sentry-example-page/page.tsx
:Expected Result
An error being reported in sentry.
Actual Result
No error is being reported in Sentry (except for a frontend error due to the error component being rendered, but the error info is missing here which is expected (see #9474)).
Interestingly, app router API routes are reported correctly, but RSC errors are not.
The text was updated successfully, but these errors were encountered: