sentry-capacitor icon indicating copy to clipboard operation
sentry-capacitor copied to clipboard

No events sent after console.log with umlauts (Android)

Open hermitdemschoenenleben opened this issue 3 years ago • 6 comments

Environment

I'm developing a capacitor app with @sentry/angular 6.14.0 and @sentry/capacitor 0.4.0 and sentry.io. I noticed that event reporting stopped after a short time in app. Analyzing the reason for this, I found out that console.log calls with umlauts cause the problem.

Steps to Reproduce

Sentry.captureException('first test message');
console.log('just normal stuff');
Sentry.captureException('still works');
console.log('üö');
Sentry.captureException('doesnt work anymore');

Expected Result

All messages should appear on sentry.io.

Actual Result

However, only the first two appear. This only happens when running the app on android. In the browser, everything works as expected.

hermitdemschoenenleben avatar Nov 04 '21 11:11 hermitdemschoenenleben

Thanks for raising this. Indeed this looks like a bug. Could you please enable debug mode so we can get more info on what's breaking?

https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#debug

bruno-garcia avatar Nov 28 '21 19:11 bruno-garcia

@hermitdemschoenenleben Yep, debug mode like Bruno said, and if possible both logs from Javascript and Android logcat logs from Sentry.

jennmueng avatar Nov 30 '21 01:11 jennmueng

I attached the logcat (notice that I used Sentry.captureMessage, not Sentry.captureException like I wrote above) logcat.txt

hermitdemschoenenleben avatar Dec 03 '21 16:12 hermitdemschoenenleben

in javascript console, there was no output

hermitdemschoenenleben avatar Dec 03 '21 16:12 hermitdemschoenenleben

I think I reported this same issue (#124) and it's just been fixed and released in v0.4.3.

KevinKelchen avatar Feb 23 '22 18:02 KevinKelchen

great, thanks!

hermitdemschoenenleben avatar Feb 23 '22 18:02 hermitdemschoenenleben

Closed as fixed on #150 feel free to reopen if needed.

lucas-zimerman avatar Sep 05 '22 13:09 lucas-zimerman