Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sentry Release Creation Failure Handling #15566

Answered by lforst
marcel-wtfoxtrot asked this question in Q&A
Discussion options

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!

You must be logged in to vote

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

Comment options

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.

You must be logged in to vote
0 replies
Answer selected by marcel-wtfoxtrot
Comment options

Thank you very much @lforst . Looking forward to it :)

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /