Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudFlare pages with NextJS support (specifically RSCs) #11920

Open
3 tasks done
Tracked by #12620
steebchen opened this issue May 6, 2024 · 8 comments
Open
3 tasks done
Tracked by #12620

CloudFlare pages with NextJS support (specifically RSCs) #11920

steebchen opened this issue May 6, 2024 · 8 comments
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK Type: Bug

Comments

@steebchen
Copy link

steebchen commented May 6, 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

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.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 May 6, 2024
@github-actions github-actions bot added the Package: nextjs Issues related to the Sentry Nextjs SDK label May 6, 2024
@lforst
Copy link
Member

lforst commented May 6, 2024

Hi, cloudflare pages are not supported by our official SDKs yet. You may want to look into https://github.com/robertcepa/toucan-js

@steebchen
Copy link
Author

steebchen commented May 6, 2024

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!

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 May 6, 2024
@getsantry getsantry bot removed the status in GitHub Issues with 👀 3 May 6, 2024
@steebchen steebchen changed the title CloudFlare pages does not report app router / RSC errors CloudFlare pages with NextJS support (specifically RSCs) May 7, 2024
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 May 20, 2024
@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 3 May 21, 2024
@getsantry
Copy link

getsantry bot commented Jun 12, 2024

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Jun 12, 2024
@steebchen
Copy link
Author

steebchen commented Jun 12, 2024

Can we mark this as not stale please? (thanks @getsantry I guess)

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Jun 12, 2024
@getsantry getsantry bot removed the Stale label Jun 13, 2024
@Lms24
Copy link
Member

Lms24 commented Jun 13, 2024

The issue won't close but unfortunately, there' no update for CloudFlare support from our end at the moment.

@vladinator1000
Copy link

Hey folks, I'll upgrade to the team plan if you add Cloudflare Pages support. Toucan source maps don't work for me robertcepa/toucan-js#236

@steebchen
Copy link
Author

related: #12620

It would be great if someone from CloudFlare could link to this issue from #12620 for tracking

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jul 9, 2024
@lforst
Copy link
Member

lforst commented Jul 9, 2024

@steebchen 🫡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK Type: Bug
Projects
Status: No status
Development

No branches or pull requests

5 participants