-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Can't get Offline integration to work #3046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It seems like there's an error being thrown in localForage: |
Thank you for the feedback, the Offline integration is still a WIP. |
Hi there 👋 . Any update on official support/docs for Offline integration? |
Please support this. Very simple to build a queue and persist it into some browser storage... |
I'm not sure if this ticket was facing the same problem, but I discovered there's an inherent conflict with the included-by-default My understanding of the issue: One caveat that made debugging a real hassle: if more than one event is captured while online, either none of the events or one of the events may disappear, as the Anyway, putting Sentry.init({
...sharedConfig,
integrations: (integrations) => {
const integrationsMinusDedupe = integrations.concat();
const dedupeIndex = integrations.findIndex((i) => i.name === "Dedupe");
const dedupeInAnArray =
dedupeIndex >= 0 ? integrationsMinusDedupe.splice(dedupeIndex, 1) : [];
return [
...integrationsMinusDedupe,
new OfflineIntegration({ maxStoredEvents: 30 }),
...dedupeInAnArray,
];
},
}); |
I think we should replace the |
Re-opening because only closed by #6983 |
Uh oh!
There was an error while loading. Please reload this page.
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
All packages at
Description
When testing Sentry for offline support, we've found that any errors that we capture offline are never sent upon reconnection.
I can see in the Network tab in DevTools that sentry sends the initial data, then when I go offline, cause an error (because the app is offline) and then go online, the error is never sent.
That same error handler can be triggered by blocking the same request in DevTools (when online) and Sentry immediately reports the error.
If I perform these as a series of actions, I can see in the breadcrumbs where the offline error is thrown (there's even a console.error there) but Sentry's breadcrumbs don't show the exception.
I can provide links privately and I'm happy to get on a Meet/Zoom/etc call to pair on this and demonstrate the issue.
The text was updated successfully, but these errors were encountered: