You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
Should build fail if publishRelease fail because Sentry instance is down ? #584
Hi,
Should build fail if publishRelease fail because Sentry instance is down ?
I'm trying to deploy my app, and our self-hosted Sentry is currently down.
I can't deploy because I have publishRelease: true which fails.
Should we have an option to ignore this is complete the build ?
I think you might be able to do that already using the publishRelease.errorHandler option. It's part of Sentry own types and is documented as:
/** * When a CLI error occurs, the plugin will call this function. * * By default, it will call `invokeErr()`, thereby stopping Webpack * compilation. To allow compilation to continue and log a warning instead, * set this to * (err, invokeErr, compilation) => { * compilation.warnings.push('Sentry CLI Plugin: ' + err.message) * } * * Note: `compilation` is typed as `unknown` in order to preserve * compatibility with both Webpack 4 and Webpack 5 types, If you need the * correct type, in Webpack 4 use `compilation.Compilation` and in Webpack 5 * use `Compilation`. */
errorHandler?: (err: Error,invokeErr: ()=>void,compilation: unknown)=>void;
BTW. There is also this Nuxt issue that causes Sentry errors during publishing to be hidden: nuxt/nuxt#21284
Not sure if you were also hit by this and had to guess what the issue is when it happened?
Activity
rchl commentedon Jun 12, 2023
I think you might be able to do that already using the
publishRelease.errorHandleroption. It's part of Sentry own types and is documented as:BTW. There is also this Nuxt issue that causes Sentry errors during publishing to be hidden: nuxt/nuxt#21284
Not sure if you were also hit by this and had to guess what the issue is when it happened?
mrleblanc101 commentedon Jun 12, 2023
@rchl Thanks for the tip, will try !


The error seems to work for me:
Which is indeed caused by the fact that our self-hosted Sentry is down:
mrleblanc101 commentedon Jun 13, 2023
I was not able to make it work.
I tried both in my
nuxt.config.js:And
rchl commentedon Jun 13, 2023
mrleblanc101 commentedon Jun 13, 2023
@rchl The only possibility I didn't try I guess 😅
Thanks, I searched in the Sentry documentation instead of the
sentry-webpack-plugindocumentation.