-
-
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. |
Hey, I have a small update since this came up again in #13976. I investigated the esbuild I'll let you know once we hear back from the Svelte team. |
I tried using the recommended adapter @jill64/sentry-sveltekit-cloudflare in the meantime and unfortunately wasn't able to get it to work, I still also received the |
* chore: update dependencies * build: upload sentry sourcemaps * build: add sentry build options * build: add sentry config * fix(frontend): improve sidebar navigation * build(frontend): add svelte version * feat(frontend): configure sentry logging * fix(frontend): remove integration for server * build(frontend): update orval version * fix(backend): only allow GET This is supposed to block more malicious requests * chore(backend): default value for traces * build(frontend): add variable sentry sampling rate * refactor(frontend): improve sentry initialization * fix(frontend): adjust hight which now works again * fix(frontend): remove sentry sveltekit due to bug getsentry/sentry-javascript#8291 * refactor(frontend): add expected handle error method * feat(frontend): add breadcrumbs to sentry Merges: #11
any updates on this? |
No, no updates. |
I am also trying to integrate Sentry in a Cloudflare-Pages/Sveltekit Project. It is a bit confusing with all the npm packages, can somebody who already went down the rabbit hole explain what options we have at the moment? I found these: https://docs.sentry.io/platforms/javascript/guides/cloudflare/ which links to https://developers.cloudflare.com/pages/functions/plugins/sentry/ .... seems to be official support but I could not get it working so far what is the difference between cloudflare/pages-plugin-sentry and sentry/cloudflare ? |
You can view my implementation using the third-party lib here: https://github.com/codecrowcorp/mage-website Look in the hooks files or just search for sentry. |
Hey, sorry that my last reply was a bit short-worded but the sad reality (I want to be transparent with y'all) is that this is not on a high priority for us right now. As far as I can tell, our packages are still impacted by sveltejs/kit#12813. Since I'm on triaging rotation this week will try to take another look in the next days. |
Currently works with https://github.com/jill64/sentry-sveltekit-cloudflare |
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: