Skip to content

Offline integration does not seem to work #369

@chetbox

Description

@chetbox

Versions + Platform

Description

We initialise Sentry like this as described in the docs:

const { Offline: OfflineIntegration } = require('@sentry/integrations');

const { logger } = require('@sentry/utils');
logger.enable();

Sentry.init({
      dsn: '...',
      integrations: [new OfflineIntegration()],
});

If I turn off wifi and start the application I see the following log when I force an error from the main process:

Sentry Logger [Error]: Error while sending event: Error: net::ERR_INTERNET_DISCONNECTED

Forcing an error from the main process or from the renderer does not seem to cause an error to be logged to Sentry, even when restarting the application.

EDIT:

Forcing an error from a renderer process gives a different error, but when the machine becomes online:

Sentry Logger [Error]: Error while sending event: Error: net::ERR_NAME_NOT_RESOLVED

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions