-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
SvelteKit Cloudflare adapter failing #8291
Comments
Looks like others have previously reported, but I couldn't find a dedicated issue to track. |
I just came across this issue myself, is there a workaround for Cloudflare pages? Setting the I wanted to try using Sentry for catching errors and issues but this seems like a complete blocker sadly. EDIT: To be fair I just noticed it states
in the docs, so that's on me. |
I'm assuming they have plans to support cloudflare workers/pages in the near future, but might not be at the top of their priority list. Hopefully soon though 🤞🏼 |
On our backlog to take a look at, but we need to figure out why this is breaking if you turn off In the meantime, you can just add |
thanks @AbhiPrasad -- lmk if you need someone to test. In the meantime, I'll keep an eye out for any updates :) |
I don't know if this is particularly helpful, but in my testing it fails with this error only with either So, currently I am using toucan-js in the hooks.server.js to init and then capturing errors with its |
@matindow what you're describing sounds about right to me. You can't use |
good to know toucan-js is a possibility if I need an escape hatch in case cloudflare support isn't available when I need server-side sentry. |
Escape hatch has been used :) Just want to keep this ticket warm. It will be really nice to use the official sveltekit + sentry integration when it's ready 😻 but for now....ToucanJS seems to be sufficient so far 😎 |
@lucasnad27 we've started looking at #8693, which should hopefully help build the infrastructure for better support here! thanks for your patience, appreciate you checking in! |
Hey @jill64 thanks for doing this! Took a quick look and IMO it's a solid workaround until there's proper support from our end. Thank you! I wonder if we can solve the |
No, I have not tried it yet, but I believe it is possible. |
Thanks so much for the suggestion Jill ! I have postponed my move to cloudflare but once it s again on the table your repo will be probably the way for us, so thank you so much for your work 👍 |
For what it's worth, this issue also blocks using Sentry in Vercel Edge Functions, since it's also not a full Node environment. |
See getsentry/sentry-javascript#8291 Currently not supported in non-node environments
Any news or workaround on this ? |
As a workaround, @jill64/sentry-sveltekit-cloudflare is still available. |
@jill64 Thanks for the support ! |
Any movement on this? |
We're currently working on our next major version (#9802) which is taking all of the maintainers bandwidth currently. Some of the planned API changes/increased OpenTelemetry support should help with cloudflare support generally. Otherwise there is workaround in #8291 (comment), or with https://github.com/robertcepa/toucan-js |
Can this be revisited now that the v8 SDK has been released? |
I believe this is being tracked in: |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/sveltekit
SDK Version
7.54.0
Framework Version
@sveltejs/kit == 1.20.0
Link to Sentry event
No response
SDK Setup
hooks.client.ts...
hooks.server.ts
Steps to Reproduce
sample svelte.config.js
Expected Result
Successful build & deploy from cloudflare pages
Actual Result
The text was updated successfully, but these errors were encountered: