Title: [Nuxt] Server-side not reporting any errors (GCP Cloud Build / Cloud Run) · Issue #17165 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Nuxt] Server-side not reporting any errors (GCP Cloud Build / Cloud Run) · Issue #17165 · getsentry/sentry-javascript
X Title: [Nuxt] Server-side not reporting any errors (GCP Cloud Build / Cloud Run) · Issue #17165 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17165
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Nuxt] Server-side not reporting any errors (GCP Cloud Build / Cloud Run)","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nuxt\n\n### SDK Version\n\n9.40.0\n\n### Framework Version\n\n3.17.7\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n```typescript\n//nuxt.config.ts\nexport default defineNuxtConfig({\n compatibilityDate: '2024-11-01',\n devtools: { enabled: true },\n // other stuff\n modules: [\n '@sentry/nuxt/module',\n // other stuff\n ],\n runtimeConfig: {\n public: {\n sentryDsn: '',\n },\n },\n nitro: {\n esbuild: {\n options: {\n target: 'es2022',\n },\n },\n },\n})\n```\n\n```typescript\n// sentry.server.config.ts\nimport process from 'node:process'\nimport * as Sentry from '@sentry/nuxt'\n\nSentry.init({\n dsn: process.env.NUXT_PUBLIC_SENTRY_DSN,\n environment: process.env.APP_ENV,\n _experiments: { enableLogs: true },\n tracesSampleRate: 0.0,\n debug: true,\n})\n```\n\n```typescript\n// sentry.client.config.ts\nimport * as Sentry from '@sentry/nuxt'\n\nconst config = useRuntimeConfig()\n\nif (config.public.sentryDsn && config.public.sentryDsn !== '') {\n Sentry.init({\n dsn: config.public.sentryDsn,\n environment: config.public.environment,\n tracesSampleRate: 0.0,\n })\n}\n```\n\n```typescript\n // capture example\n Sentry.withScope((scope) => {\n scope.setExtra('email-error', emailResult.error)\n scope.setExtra('email-payload', {\n from: '',\n to: '',\n subject: emailTemplate.subject,\n service: '',\n })\n Sentry.captureMessage('Email sending failed in non-reporting API', 'error')\n })\n```\n\n### Steps to Reproduce\n\nWe're experiencing an issue where Sentry notifications work perfectly in local development but fail to appear in our staging/production environment. Server-side Sentry events are not being captured or reported to the Sentry dashboard, however, client-side Sentry events are being captured or reported to the Sentry dashboard.\n\n1. Deploy the code using Cloud Build (GCP) and run using Cloud Run using Sentry.captureMessage as seen in the code snippet to capture messages from emails not sent.\n2. Intentionally remove the API from env files to get an error.\n3. Capture that error on Sentry Issues / Dashboard\n\n### Expected Result\n\nI expected to capture the error in Sentry, but nothing appears on Dashboard.\nInstalled using pnpm.\n\nWhat Works\n✅ Local Development: Sentry captures all errors and sends notifications\n✅ Client-side: Sentry works in both local and staging\n✅ Configuration: Sentry is properly initialized (confirmed via debug logs)\n✅ Environment Variables: DSN and environment are correctly set\n\nWhat Doesn't Work\n❌ Server-side in Staging: No Sentry notifications appear in dashboard\n❌ Email failure events: Not captured in staging environment\n\nKey Findings\nSentry Initialization: Confirmed working via server logs\nEnvironment Variables: Properly set in staging\nAPI Endpoints: Functioning correctly (return expected errors)\nServer-side vs Client-side: Only server-side affected\nDevelopment vs Staging: Only staging environment affected\nEvent ID: When the error occurs, the event ID is shown, which means we are getting a response from Sentry (image below).\n\n\u003cimg width=\"632\" height=\"23\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7b305932-5e66-42ba-b545-a1ec0a9570c5\" />\n\n### Actual Result\n\nNo server-side issues are seen in the Dashboard, despite having a response from Sentry with the Event ID when errors happen on staging environment (Cloud Build / Cloud Run).\n\nBut works fine on local machine.","author":{"url":"https://github.com/azoom-julio-quiezi","@type":"Person","name":"azoom-julio-quiezi"},"datePublished":"2025-07-25T03:53:26Z","url":"https://github.com/getsentry/sentry-javascript/issues/17165"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2f938f13-bbf9-b079-86ae-57df889f7fea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C88E:52E99:38C1A0:4DE46B:6B05DBDE |
| html-safe-nonce | d87583e90be495cdeca6e074c83aa4799d017ece47f2022f5224ce65b3bc7af4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODhFOjUyRTk5OjM4QzFBMDo0REU0NkI6NkIwNURCREUiLCJ2aXNpdG9yX2lkIjoiNTY2MTg2Mjg2MTkwODMzNTU4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a7176730fedaee3d48cb7a81cddd92267320a66431870f6b47fa233b912deb35 |
| hovercard-subject-tag | issue:3261897682 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/17165/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac422f876a40bcad0a42e703ee7fe28333f05206883581510734b0b1deda530d/getsentry/sentry-javascript/issues/17165 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac422f876a40bcad0a42e703ee7fe28333f05206883581510734b0b1deda530d/getsentry/sentry-javascript/issues/17165 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | azoom-julio-quiezi |
| hostname | github.com |
| expected-hostname | github.com |
| None | ab9d6b164c6e5b32656ef80f1a302b2dafee4e4c9360ef3fced66da06fb522fa |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2db8c3558610af6beef9310dcf5537e201a6e5fb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width