Skip to content
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

[BUG] can't make Catcher work with Sentry #210

Open
subzero911 opened this issue Feb 2, 2022 · 1 comment
Open

[BUG] can't make Catcher work with Sentry #210

subzero911 opened this issue Feb 2, 2022 · 1 comment
Assignees
Labels
New issue New issue which has not been checked yet

Comments

@subzero911
Copy link

installation instructions in Sentry are

image

But catcher has its own app runner (rootWidget parameter):
image
It also says nothing about SentryFlutter.init
and it uses SentryClient instead

I try to throw intentional error, but nothing comes to my Sentry
image
(tried both Sentry.captureException and Catcher.reportCheckedError)

I also tried to invoke SentryFlutter.init before Catcher and duplicate DSN number in it, but it didn't help.
image

@subzero911 subzero911 added the New issue New issue which has not been checked yet label Feb 2, 2022
@subzero911
Copy link
Author

subzero911 commented Feb 3, 2022

I checked it again today.
You must invoke SentryFlutter.init() before Catcher, or it won't send events to Sentry.io. And do all the setup on the options object inside init() (settings on SentryClient() inside Catcher will be ignored).
Consider update docs.

(but there was the problem also because I've thrown the test error like throw 'error', but Sentry understands only throw Exception ('error')
no error's delivered without wrapper Exception class)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New issue New issue which has not been checked yet
Projects
None yet
Development

No branches or pull requests

2 participants