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

When Sentry goes down/offline my entire app crashes?! #5162

Locked Answered by vladanpaunovic
mabasic asked this question in Q&A
Discussion options

I have recently implemented Sentry in a next.js application. We use a self hosted version of Sentry which is very underpowered and it frequently goes down. When this happens and when an error occurs in the app, sentry is unable to send the request and it crashes the entire app

(削除) Also, sentry cli fails to upload source maps and the whole pipeline crashes (削除ここまで) I've fixed this by changing the errorHandler function per instructions found in the errorHandler comments.

/**
 * 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;

I assumed that when sentry goes offline my app should continue working as normal?

@vladanpaunovic We have run extensive tests and concluded that it was not Sentry at fault after all. Thank you.

You must be logged in to vote

Hey @mabasic, this is definitely an unintended behaviour which we didn't experience yet.

Our SDK is designed to keep your app intact even when Sentry is experiencing downtime.

As I couldn't reproduce this myself, can you please create an issue with the reproduction repository? Once this is in place, someone here will help you.

Replies: 1 comment

Comment options

Hey @mabasic, this is definitely an unintended behaviour which we didn't experience yet.

Our SDK is designed to keep your app intact even when Sentry is experiencing downtime.

As I couldn't reproduce this myself, can you please create an issue with the reproduction repository? Once this is in place, someone here will help you.

You must be logged in to vote
0 replies
Answer selected by mabasic
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 によって変換されたページ (->オリジナル) /