-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Sentry Release Creation Failure Handling #15566
-
Hi,
we are currently migrating to Sentry 9 (using Sentry Nuxt).
So far it is looking promising but recently we had a couple of pipelines failing.
The reason was an API Error while creating a new Release.
node_modules/@sentry/vite-plugin/node_modules/@sentry/bundler-plugin-core/node_modules/@sentry/cli/node_modules/@sentry/cli-linux-x64/bin/sentry-cli releases new 5920e35262644d2aa118ca936b9249ed5096efa7 error: API request failed Caused by: sentry reported an error: unknown error (http status: 503) Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output. Please attach the full debug log to all bug reports.
In these cases our build fails. Is there a recommended way to handle these kinds of error?
Is it possible to handle this error or make it silent?
If a release can not be created i still want to build my app and deploy it. Sentry Sourcemaps / Releases should not be blocking.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions
You can use the Nuxt plugin's unstable_sentryBundlerPluginOptions option to pass a errorHandler option https://www.npmjs.com/package/@sentry/vite-plugin#errorhandler that you can catch all errors with.
We are also switching to a model under the hood where we will no longer fail builds if there was an API error when communicating to Sentry. So stay tuned and keep the SDK up to date.
Replies: 2 comments
-
You can use the Nuxt plugin's unstable_sentryBundlerPluginOptions option to pass a errorHandler option https://www.npmjs.com/package/@sentry/vite-plugin#errorhandler that you can catch all errors with.
We are also switching to a model under the hood where we will no longer fail builds if there was an API error when communicating to Sentry. So stay tuned and keep the SDK up to date.
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you very much @lforst . Looking forward to it :)
Beta Was this translation helpful? Give feedback.