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

sentry: can't serialize breadcrumb data because of error

Open penso opened this issue 3 years ago • 1 comments

Issue Description

I believe there is an issue when an error occurs in the stack, I was expecting sentry to send a new issue but it did not. The error says:

2022-07-22T14:58:02.391625+00:00 app[web.1]: 14:58:02 web.1 | D, [2022-07-22T14:58:02.374296 #57] DEBUG -- sentry: can't serialize breadcrumb data because of error: "\xD2" from ASCII-8BIT to UTF-8

I use .breadcrumbs_logger = [:active_support_logger] and the code is inserting raw bytes (non utf8) into a pgsql binary column. I have the feeling sentry is trying to get a backtrace and converting that binary into UTF8.

Reproduction Steps

none :(

Expected Behavior

Get a sentry issue

Actual Behavior

crashing, no sentry issue sent

Ruby Version

3.0.2

SDK Version

5.1.0

Integration and Its Version

No response

Sentry Config

No response

penso avatar Jul 25 '22 09:07 penso

The message only notifies you that 1 breadcrumb record can't be serialized. The error is rescued and it shouldn't prevent the event from being sent nor crash your app.

st0012 avatar Jul 25 '22 10:07 st0012

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Aug 16 '22 00:08 github-actions[bot]