Skip to content

Event sending failed: source sequence is illegal/malformed utf-8 #2082

@yujideveloper

Description

@yujideveloper

Issue Description

(Similar to #1911 and #1992)

I got the error Event sending failed: source sequence is illegal/malformed utf-8.

Here is the log:

Event sending failed: source sequence is illegal/malformed utf-8
Unreported Event: ArgumentError: wrong number of arguments (given 2, expected 1)
exception happened in background worker: source sequence is illegal/malformed utf-8

Reproduction Steps

Call Sentry.capture_exception(exception) with a long exception message containing multibyte characters.

Expected Behavior

Event is sent to Sentry.

Actual Behavior

Event isn't sent to Sentry.

Ruby Version

3.1.4

SDK Version

5.4.2

Integration and Its Version

No response

Sentry Config

Sentry.init do |config|
  config.dsn = ENV["SENTRY_DSN"]
  config.enabled_environments = %w[production development]
  config.breadcrumbs_logger = %i[sentry_logger active_support_logger http_logger]
  config.capture_exception_frame_locals = true
end

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions