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

Fix breadcrumb serialization error to be an object #2478

Open
datpmt opened this issue Nov 28, 2024 · 5 comments
Open

Fix breadcrumb serialization error to be an object #2478

datpmt opened this issue Nov 28, 2024 · 5 comments
Assignees

Comments

@datpmt
Copy link

datpmt commented Nov 28, 2024

Issue Description

Image

Reproduction Steps

I have no idea

Expected Behavior

Shows the problem the application encountered

Actual Behavior

Sentry has identified the following problems for you to monitor

Ruby Version

3.0.1

SDK Version

5.8.0

Integration and Its Version

No response

Sentry Config

Sentry.init do |config|
  config.dsn = ENV["SENTRY_DSN"]
  config.breadcrumbs_logger = [:active_support_logger, :http_logger]
  config.enabled_environments = ['production', 'staging']

  config.traces_sample_rate = 1.0
  config.traces_sampler = lambda do |context|
    true
  end
end
@sl0thentr0py
Copy link
Member

are you on self-hosted or SaaS?

@datpmt
Copy link
Author

datpmt commented Nov 28, 2024

hi @sl0thentr0py

are you on self-hosted or SaaS?

We are using a self-hosted solution.

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Nov 28, 2024
@sl0thentr0py
Copy link
Member

ok, your breadcrumbs data probably has some weird encoding issue. Can you paste the whole event json payload from the curly braces button {} (to the left of the 'Recommended' button)?

@datpmt
Copy link
Author

datpmt commented Nov 29, 2024

@sl0thentr0py

{
  "event_id": "dd872f208e6c41588a51effd77b81f30",
  "project": 4505049608093696,
  "release": "35c58342e80bccdba0dac9cb59bdd1f7b50321ed",
  "dist": null,
  "platform": "ruby",
  "message": "",
  "datetime": "2024-11-29T06:25:22+00:00",
  "tags": [
    [
      "browser",
      "Python Requests 2.31"
    ],
    [
      "browser.name",
      "Python Requests"
    ],
    [
      "environment",
      "production"
    ],
    [
      "level",
      "error"
    ],
    [
      "os",
      "Linux #196-Ubuntu SMP Fri Mar 22 16:46:39 UTC 2024"
    ],
    [
      "os.name",
      "Linux"
    ],
    [
      "request_id",
      "725b49f1-dad4-405a-96b6-3fdbad21f095"
    ],
    [
      "runtime",
      "ruby ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]"
    ],
    [
      "runtime.name",
      "ruby"
    ],
    [
      "release",
      "35c58342e80bccdba0dac9cb59bdd1f7b50321ed"
    ],
    [
      "server_name",
      "vultr"
    ],
    [
      "transaction",
      "/api/v2/dictionary/translate"
    ],
    [
      "url",
      "https://api.datpmt.com/api/v2/dictionary/translate"
    ]
  ],
  "_meta": {
    "breadcrumbs": {
      "values": {
        "5": {
          "data": {
            "": {
              "err": [
                [
                  "invalid_data",
                  {
                    "reason": "expected an object"
                  }
                ]
              ],
              "val": "[data were removed due to serialization issues]"
            }
          }
        }
      }
    }
  },
  "_metrics": {
    "bytes.ingested.event": 24755,
    "bytes.stored.event": 58261
  },
  "breadcrumbs": {
    "values": [
      {
        "timestamp": 1732861522,
        "type": "default",
        "category": "enqueue.active_job",
        "level": "info",
        "message": "",
        "data": {
          "adapter": "#\u003CActiveJob::QueueAdapters::SidekiqAdapter:0x0000556e155c5020\u003E",
          "job": "#\u003CRequestCounterJob:0x00007fa9582b55f8\u003E"
        }
      },
      {
        "timestamp": 1732861522,
        "type": "default",
        "category": "endpoint_run_filters.grape",
        "level": "info",
        "message": "",
        "data": {
          "endpoint": "#\u003C#\u003CClass:0x0000556e17720b98\u003E:0x00007fa96856db00\u003E",
          "filters": [
            "#\u003CProc:0x0000556e17165f50 /*/*/*/api/production/releases/20241127094617/app/api/v2/dictionary.rb:5\u003E"
          ],
          "type": "before"
        }
      },
      {
        "timestamp": 1732861522,
        "type": "default",
        "category": "endpoint_run_filters.grape",
        "level": "info",
        "message": "",
        "data": {
          "endpoint": "#\u003C#\u003CClass:0x0000556e17720b98\u003E:0x00007fa96856db00\u003E",
          "filters": [],
          "type": "before_validation"
        }
      },
      {
        "timestamp": 1732861522,
        "type": "default",
        "category": "endpoint_run_validators.grape",
        "level": "info",
        "message": "",
        "data": {
          "endpoint": "#\u003C#\u003CClass:0x0000556e17720b98\u003E:0x00007fa96856db00\u003E",
          "validators": [
            "#\u003CGrape::Validations::Validators::PresenceValidator:0x00007fa9582ae258\u003E",
            "#\u003CGrape::Validations::Validators::CoerceValidator:0x00007fa9582ae1b8\u003E",
            "#\u003CGrape::Validations::Validators::AllowBlankValidator:0x00007fa9582ae050\u003E",
            "#\u003CGrape::Validations::Validators::CoerceValidator:0x00007fa9582adfb0\u003E",
            "#\u003CGrape::Validations::Validators::DefaultValidator:0x00007fa9582ade48\u003E",
            "#\u003CGrape::Validations::Validators::CoerceValidator:0x00007fa9582add80\u003E",
            "#\u003CGrape::Validations::Validators::DefaultValidator:0x00007fa9582adc18\u003E"
          ]
        }
      },
      {
        "timestamp": 1732861522,
        "type": "default",
        "category": "endpoint_run_filters.grape",
        "level": "info",
        "message": "",
        "data": {
          "endpoint": "#\u003C#\u003CClass:0x0000556e17720b98\u003E:0x00007fa96856db00\u003E",
          "filters": [],
          "type": "finally"
        }
      },
      {
        "timestamp": 1732861522,
        "type": "default",
        "category": "endpoint_run.grape",
        "level": "info",
        "message": "",
        "data": null
      }
    ]
  },
  "contexts": {
    "browser": {
      "browser": "Python Requests 2.31",
      "name": "Python Requests",
      "version": "2.31",
      "type": "browser"
    },
    "os": {
      "os": "Linux #196-Ubuntu SMP Fri Mar 22 16:46:39 UTC 2024",
      "name": "Linux",
      "version": "#196-Ubuntu SMP Fri Mar 22 16:46:39 UTC 2024",
      "build": "5.4.0-176-generic",
      "kernel_version": "#196-Ubuntu SMP Fri Mar 22 16:46:39 UTC 2024",
      "type": "os"
    },
    "runtime": {
      "runtime": "ruby ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]",
      "name": "ruby",
      "version": "ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]",
      "type": "runtime"
    },
    "trace": {
      "trace_id": "1083ec3793b54422a425b6c2123dfe98",
      "span_id": "9d858a07bb5e087d",
      "op": "http.server",
      "status": "unknown",
      "type": "trace"
    }
  },
  "culprit": "/api/v2/dictionary/translate",
  "environment": "production",
  "errors": [
    {
      "type": "invalid_data",
      "name": "breadcrumbs.values.5.data",
      "value": "[data were removed due to serialization issues]",
      "reason": "expected an object"
    }
  ],
  "exception": {
    "values": [
      {
        "type": "ArgumentError",
        "value": "invalid byte sequence in UTF-8",
        "module": "",
        "stacktrace": {
          "frames": [
            {
              "function": "block in spawn_thread",
              "filename": "puma (5.6.8) lib/puma/thread_pool.rb",
              "abs_path": "puma (5.6.8) lib/puma/thread_pool.rb",
              "lineno": 147,
              "in_app": false
            },
            {
              "function": "process_client",
              "filename": "puma (5.6.8) lib/puma/server.rb",
              "abs_path": "puma (5.6.8) lib/puma/server.rb",
              "lineno": 443,
              "in_app": false
            },
            {
              "function": "handle_request",
              "filename": "puma (5.6.8) lib/puma/request.rb",
              "abs_path": "puma (5.6.8) lib/puma/request.rb",
              "lineno": 76,
              "in_app": false
            },
            {
              "function": "with_force_shutdown",
              "filename": "puma (5.6.8) lib/puma/thread_pool.rb",
              "abs_path": "puma (5.6.8) lib/puma/thread_pool.rb",
              "lineno": 340,
              "in_app": false
            },
            {
              "function": "block in handle_request",
              "filename": "puma (5.6.8) lib/puma/request.rb",
              "abs_path": "puma (5.6.8) lib/puma/request.rb",
              "lineno": 77,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "puma (5.6.8) lib/puma/configuration.rb",
              "abs_path": "puma (5.6.8) lib/puma/configuration.rb",
              "lineno": 252,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "railties (6.1.7) lib/rails/engine.rb",
              "abs_path": "railties (6.1.7) lib/rails/engine.rb",
              "lineno": 539,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack-cors (2.0.1) lib/rack/cors.rb",
              "abs_path": "rack-cors (2.0.1) lib/rack/cors.rb",
              "lineno": 102,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/host_authorization.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/host_authorization.rb",
              "lineno": 142,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack (2.2.3) lib/rack/sendfile.rb",
              "abs_path": "rack (2.2.3) lib/rack/sendfile.rb",
              "lineno": 110,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/static.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/static.rb",
              "lineno": 24,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/executor.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/executor.rb",
              "lineno": 14,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack (2.2.3) lib/rack/runtime.rb",
              "abs_path": "rack (2.2.3) lib/rack/runtime.rb",
              "lineno": 22,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack (2.2.3) lib/rack/method_override.rb",
              "abs_path": "rack (2.2.3) lib/rack/method_override.rb",
              "lineno": 24,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/request_id.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/request_id.rb",
              "lineno": 26,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "request_store (1.5.1) lib/request_store/middleware.rb",
              "abs_path": "request_store (1.5.1) lib/request_store/middleware.rb",
              "lineno": 19,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/remote_ip.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/remote_ip.rb",
              "lineno": 81,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "railties (6.1.7) lib/rails/rack/logger.rb",
              "abs_path": "railties (6.1.7) lib/rails/rack/logger.rb",
              "lineno": 28,
              "in_app": false
            },
            {
              "function": "call_app",
              "filename": "railties (6.1.7) lib/rails/rack/logger.rb",
              "abs_path": "railties (6.1.7) lib/rails/rack/logger.rb",
              "lineno": 37,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/show_exceptions.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/show_exceptions.rb",
              "lineno": 33,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "sentry-ruby (5.8.0) lib/sentry/rack/capture_exceptions.rb",
              "abs_path": "sentry-ruby (5.8.0) lib/sentry/rack/capture_exceptions.rb",
              "lineno": 18,
              "in_app": false
            },
            {
              "function": "with_scope",
              "filename": "sentry-ruby (5.8.0) lib/sentry-ruby.rb",
              "abs_path": "sentry-ruby (5.8.0) lib/sentry-ruby.rb",
              "lineno": 355,
              "in_app": false
            },
            {
              "function": "with_scope",
              "filename": "sentry-ruby (5.8.0) lib/sentry/hub.rb",
              "abs_path": "sentry-ruby (5.8.0) lib/sentry/hub.rb",
              "lineno": 59,
              "in_app": false
            },
            {
              "function": "block in call",
              "filename": "sentry-ruby (5.8.0) lib/sentry/rack/capture_exceptions.rb",
              "abs_path": "sentry-ruby (5.8.0) lib/sentry/rack/capture_exceptions.rb",
              "lineno": 19,
              "in_app": false
            },
            {
              "function": "with_session_tracking",
              "filename": "sentry-ruby (5.8.0) lib/sentry-ruby.rb",
              "abs_path": "sentry-ruby (5.8.0) lib/sentry-ruby.rb",
              "lineno": 375,
              "in_app": false
            },
            {
              "function": "with_session_tracking",
              "filename": "sentry-ruby (5.8.0) lib/sentry/hub.rb",
              "abs_path": "sentry-ruby (5.8.0) lib/sentry/hub.rb",
              "lineno": 220,
              "in_app": false
            },
            {
              "function": "block (2 levels) in call",
              "filename": "sentry-ruby (5.8.0) lib/sentry/rack/capture_exceptions.rb",
              "abs_path": "sentry-ruby (5.8.0) lib/sentry/rack/capture_exceptions.rb",
              "lineno": 28,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/debug_exceptions.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/debug_exceptions.rb",
              "lineno": 29,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "sentry-rails (5.8.0) lib/sentry/rails/rescued_exception_interceptor.rb",
              "abs_path": "sentry-rails (5.8.0) lib/sentry/rails/rescued_exception_interceptor.rb",
              "lineno": 12,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/actionable_exceptions.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/actionable_exceptions.rb",
              "lineno": 18,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb",
              "lineno": 26,
              "in_app": false
            },
            {
              "function": "run_callbacks",
              "filename": "activesupport (6.1.7) lib/active_support/callbacks.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/callbacks.rb",
              "lineno": 98,
              "in_app": false
            },
            {
              "function": "block in call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb",
              "lineno": 27,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/middleware/cookies.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/middleware/cookies.rb",
              "lineno": 689,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack (2.2.3) lib/rack/session/abstract/id.rb",
              "abs_path": "rack (2.2.3) lib/rack/session/abstract/id.rb",
              "lineno": 260,
              "in_app": false
            },
            {
              "function": "context",
              "filename": "rack (2.2.3) lib/rack/session/abstract/id.rb",
              "abs_path": "rack (2.2.3) lib/rack/session/abstract/id.rb",
              "lineno": 266,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/http/content_security_policy.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/http/content_security_policy.rb",
              "lineno": 19,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/http/permissions_policy.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/http/permissions_policy.rb",
              "lineno": 22,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack (2.2.3) lib/rack/head.rb",
              "abs_path": "rack (2.2.3) lib/rack/head.rb",
              "lineno": 12,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack (2.2.3) lib/rack/conditional_get.rb",
              "abs_path": "rack (2.2.3) lib/rack/conditional_get.rb",
              "lineno": 27,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack (2.2.3) lib/rack/etag.rb",
              "abs_path": "rack (2.2.3) lib/rack/etag.rb",
              "lineno": 27,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack (2.2.3) lib/rack/tempfile_reaper.rb",
              "abs_path": "rack (2.2.3) lib/rack/tempfile_reaper.rb",
              "lineno": 15,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "warden (1.2.9) lib/warden/manager.rb",
              "abs_path": "warden (1.2.9) lib/warden/manager.rb",
              "lineno": 34,
              "in_app": false
            },
            {
              "function": "catch",
              "filename": "warden (1.2.9) lib/warden/manager.rb",
              "abs_path": "warden (1.2.9) lib/warden/manager.rb",
              "lineno": 34,
              "in_app": false
            },
            {
              "function": "block in call",
              "filename": "warden (1.2.9) lib/warden/manager.rb",
              "abs_path": "warden (1.2.9) lib/warden/manager.rb",
              "lineno": 36,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb",
              "lineno": 842,
              "in_app": false
            },
            {
              "function": "serve",
              "filename": "actionpack (6.1.7) lib/action_dispatch/journey/router.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/journey/router.rb",
              "lineno": 32,
              "in_app": false
            },
            {
              "function": "each",
              "filename": "actionpack (6.1.7) lib/action_dispatch/journey/router.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/journey/router.rb",
              "lineno": 32,
              "in_app": false
            },
            {
              "function": "block in serve",
              "filename": "actionpack (6.1.7) lib/action_dispatch/journey/router.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/journey/router.rb",
              "lineno": 50,
              "in_app": false
            },
            {
              "function": "serve",
              "filename": "actionpack (6.1.7) lib/action_dispatch/routing/mapper.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/routing/mapper.rb",
              "lineno": 49,
              "in_app": false
            },
            {
              "function": "block in \u003Cclass:Constraints\u003E",
              "filename": "actionpack (6.1.7) lib/action_dispatch/routing/mapper.rb",
              "abs_path": "actionpack (6.1.7) lib/action_dispatch/routing/mapper.rb",
              "lineno": 20,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "grape (1.6.2) lib/grape/api.rb",
              "abs_path": "grape (1.6.2) lib/grape/api.rb",
              "lineno": 81,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "grape (1.6.2) lib/grape/api/instance.rb",
              "abs_path": "grape (1.6.2) lib/grape/api/instance.rb",
              "lineno": 65,
              "in_app": false
            },
            {
              "function": "call!",
              "filename": "grape (1.6.2) lib/grape/api/instance.rb",
              "abs_path": "grape (1.6.2) lib/grape/api/instance.rb",
              "lineno": 70,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "grape (1.6.2) lib/grape/api/instance.rb",
              "abs_path": "grape (1.6.2) lib/grape/api/instance.rb",
              "lineno": 165,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "grape (1.6.2) lib/grape/router.rb",
              "abs_path": "grape (1.6.2) lib/grape/router.rb",
              "lineno": 55,
              "in_app": false
            },
            {
              "function": "with_optimization",
              "filename": "grape (1.6.2) lib/grape/router.rb",
              "abs_path": "grape (1.6.2) lib/grape/router.rb",
              "lineno": 136,
              "in_app": false
            },
            {
              "function": "block in call",
              "filename": "grape (1.6.2) lib/grape/router.rb",
              "abs_path": "grape (1.6.2) lib/grape/router.rb",
              "lineno": 56,
              "in_app": false
            },
            {
              "function": "identity",
              "filename": "grape (1.6.2) lib/grape/router.rb",
              "abs_path": "grape (1.6.2) lib/grape/router.rb",
              "lineno": 72,
              "in_app": false
            },
            {
              "function": "transaction",
              "filename": "grape (1.6.2) lib/grape/router.rb",
              "abs_path": "grape (1.6.2) lib/grape/router.rb",
              "lineno": 94,
              "in_app": false
            },
            {
              "function": "block in identity",
              "filename": "grape (1.6.2) lib/grape/router.rb",
              "abs_path": "grape (1.6.2) lib/grape/router.rb",
              "lineno": 74,
              "in_app": false
            },
            {
              "function": "process_route",
              "filename": "grape (1.6.2) lib/grape/router.rb",
              "abs_path": "grape (1.6.2) lib/grape/router.rb",
              "lineno": 120,
              "in_app": false
            },
            {
              "function": "exec",
              "filename": "grape (1.6.2) lib/grape/router/route.rb",
              "abs_path": "grape (1.6.2) lib/grape/router/route.rb",
              "lineno": 58,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "grape (1.6.2) lib/grape/endpoint.rb",
              "abs_path": "grape (1.6.2) lib/grape/endpoint.rb",
              "lineno": 219,
              "in_app": false
            },
            {
              "function": "call!",
              "filename": "grape (1.6.2) lib/grape/endpoint.rb",
              "abs_path": "grape (1.6.2) lib/grape/endpoint.rb",
              "lineno": 225,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "rack (2.2.3) lib/rack/head.rb",
              "abs_path": "rack (2.2.3) lib/rack/head.rb",
              "lineno": 12,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "grape (1.6.2) lib/grape/middleware/base.rb",
              "abs_path": "grape (1.6.2) lib/grape/middleware/base.rb",
              "lineno": 29,
              "in_app": false
            },
            {
              "function": "call!",
              "filename": "grape (1.6.2) lib/grape/middleware/error.rb",
              "abs_path": "grape (1.6.2) lib/grape/middleware/error.rb",
              "lineno": 38,
              "in_app": false
            },
            {
              "function": "catch",
              "filename": "grape (1.6.2) lib/grape/middleware/error.rb",
              "abs_path": "grape (1.6.2) lib/grape/middleware/error.rb",
              "lineno": 38,
              "in_app": false
            },
            {
              "function": "block in call!",
              "filename": "grape (1.6.2) lib/grape/middleware/error.rb",
              "abs_path": "grape (1.6.2) lib/grape/middleware/error.rb",
              "lineno": 39,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "grape (1.6.2) lib/grape/middleware/base.rb",
              "abs_path": "grape (1.6.2) lib/grape/middleware/base.rb",
              "lineno": 29,
              "in_app": false
            },
            {
              "function": "call!",
              "filename": "grape (1.6.2) lib/grape/middleware/base.rb",
              "abs_path": "grape (1.6.2) lib/grape/middleware/base.rb",
              "lineno": 36,
              "in_app": false
            },
            {
              "function": "call",
              "filename": "grape (1.6.2) lib/grape/middleware/base.rb",
              "abs_path": "grape (1.6.2) lib/grape/middleware/base.rb",
              "lineno": 29,
              "in_app": false
            },
            {
              "function": "call!",
              "filename": "grape (1.6.2) lib/grape/middleware/base.rb",
              "abs_path": "grape (1.6.2) lib/grape/middleware/base.rb",
              "lineno": 36,
              "in_app": false
            },
            {
              "function": "block in build_stack",
              "filename": "grape (1.6.2) lib/grape/endpoint.rb",
              "abs_path": "grape (1.6.2) lib/grape/endpoint.rb",
              "lineno": 316,
              "in_app": false
            },
            {
              "function": "run",
              "filename": "grape (1.6.2) lib/grape/endpoint.rb",
              "abs_path": "grape (1.6.2) lib/grape/endpoint.rb",
              "lineno": 241,
              "in_app": false
            },
            {
              "function": "instrument",
              "filename": "activesupport (6.1.7) lib/active_support/notifications.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/notifications.rb",
              "lineno": 203,
              "in_app": false
            },
            {
              "function": "instrument",
              "filename": "sentry-rails (5.8.0) lib/sentry/rails/tracing.rb",
              "abs_path": "sentry-rails (5.8.0) lib/sentry/rails/tracing.rb",
              "lineno": 54,
              "in_app": false
            },
            {
              "function": "instrument",
              "filename": "activesupport (6.1.7) lib/active_support/notifications/instrumenter.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/notifications/instrumenter.rb",
              "lineno": 24,
              "in_app": false
            },
            {
              "function": "block in instrument",
              "filename": "activesupport (6.1.7) lib/active_support/notifications.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/notifications.rb",
              "lineno": 203,
              "in_app": false
            },
            {
              "function": "block in run",
              "filename": "grape (1.6.2) lib/grape/endpoint.rb",
              "abs_path": "grape (1.6.2) lib/grape/endpoint.rb",
              "lineno": 259,
              "in_app": false
            },
            {
              "function": "run_validators",
              "filename": "grape (1.6.2) lib/grape/endpoint.rb",
              "abs_path": "grape (1.6.2) lib/grape/endpoint.rb",
              "lineno": 353,
              "in_app": false
            },
            {
              "function": "instrument",
              "filename": "activesupport (6.1.7) lib/active_support/notifications.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/notifications.rb",
              "lineno": 203,
              "in_app": false
            },
            {
              "function": "instrument",
              "filename": "sentry-rails (5.8.0) lib/sentry/rails/tracing.rb",
              "abs_path": "sentry-rails (5.8.0) lib/sentry/rails/tracing.rb",
              "lineno": 54,
              "in_app": false
            },
            {
              "function": "instrument",
              "filename": "activesupport (6.1.7) lib/active_support/notifications/instrumenter.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/notifications/instrumenter.rb",
              "lineno": 24,
              "in_app": false
            },
            {
              "function": "block in instrument",
              "filename": "activesupport (6.1.7) lib/active_support/notifications.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/notifications.rb",
              "lineno": 203,
              "in_app": false
            },
            {
              "function": "block in run_validators",
              "filename": "grape (1.6.2) lib/grape/endpoint.rb",
              "abs_path": "grape (1.6.2) lib/grape/endpoint.rb",
              "lineno": 354,
              "in_app": false
            },
            {
              "function": "each",
              "filename": "grape (1.6.2) lib/grape/endpoint.rb",
              "abs_path": "grape (1.6.2) lib/grape/endpoint.rb",
              "lineno": 354,
              "in_app": false
            },
            {
              "function": "block (2 levels) in run_validators",
              "filename": "grape (1.6.2) lib/grape/endpoint.rb",
              "abs_path": "grape (1.6.2) lib/grape/endpoint.rb",
              "lineno": 355,
              "in_app": false
            },
            {
              "function": "validate",
              "filename": "grape (1.6.2) lib/grape/validations/validators/base.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/validators/base.rb",
              "lineno": 35,
              "in_app": false
            },
            {
              "function": "validate!",
              "filename": "grape (1.6.2) lib/grape/validations/validators/base.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/validators/base.rb",
              "lineno": 49,
              "in_app": false
            },
            {
              "function": "each",
              "filename": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "lineno": 18,
              "in_app": false
            },
            {
              "function": "do_each",
              "filename": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "lineno": 24,
              "in_app": false
            },
            {
              "function": "each_with_index",
              "filename": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "lineno": 24,
              "in_app": false
            },
            {
              "function": "each",
              "filename": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "lineno": 24,
              "in_app": false
            },
            {
              "function": "block in do_each",
              "filename": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/attributes_iterator.rb",
              "lineno": 44,
              "in_app": false
            },
            {
              "function": "yield_attributes",
              "filename": "grape (1.6.2) lib/grape/validations/single_attribute_iterator.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/single_attribute_iterator.rb",
              "lineno": 9,
              "in_app": false
            },
            {
              "function": "each",
              "filename": "grape (1.6.2) lib/grape/validations/single_attribute_iterator.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/single_attribute_iterator.rb",
              "lineno": 9,
              "in_app": false
            },
            {
              "function": "block in yield_attributes",
              "filename": "grape (1.6.2) lib/grape/validations/single_attribute_iterator.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/single_attribute_iterator.rb",
              "lineno": 10,
              "in_app": false
            },
            {
              "function": "block in validate!",
              "filename": "grape (1.6.2) lib/grape/validations/validators/base.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/validators/base.rb",
              "lineno": 55,
              "in_app": false
            },
            {
              "function": "validate_param!",
              "filename": "grape (1.6.2) lib/grape/validations/validators/allow_blank.rb",
              "abs_path": "grape (1.6.2) lib/grape/validations/validators/allow_blank.rb",
              "lineno": 13,
              "in_app": false
            },
            {
              "function": "present?",
              "filename": "activesupport (6.1.7) lib/active_support/core_ext/object/blank.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/core_ext/object/blank.rb",
              "lineno": 26,
              "in_app": false
            },
            {
              "function": "blank?",
              "filename": "activesupport (6.1.7) lib/active_support/core_ext/object/blank.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/core_ext/object/blank.rb",
              "lineno": 127,
              "in_app": false
            },
            {
              "function": "match?",
              "filename": "activesupport (6.1.7) lib/active_support/core_ext/object/blank.rb",
              "abs_path": "activesupport (6.1.7) lib/active_support/core_ext/object/blank.rb",
              "lineno": 127,
              "in_app": false
            }
          ]
        },
        "thread_id": 41085040
      }
    ]
  },
  "fingerprint": [
    "{{ default }}"
  ],
  "grouping_config": {
    "enhancements": "KLUv_SAYwQAAkwKRs25ld3N0eWxlOjIwMjMtMDEtMTGQ",
    "id": "newstyle:2023-01-11"
  },
  "hashes": [
    "dabce1721c02eb8a8a92d6637e4ddd43"
  ],
  "ingest_path": [
    {
      "version": "24.11.1",
      "public_key": "XE7QiyuNlja9PZ7I9qJlwQotzecWrUIN91BAO7Q5R38"
    }
  ],
  "key_id": "3102026",
  "level": "error",
  "location": "activesupport (6.1.7) lib/active_support/core_ext/object/blank.rb",
  "logger": "",
  "metadata": {
    "filename": "activesupport (6.1.7) lib/active_support/core_ext/object/blank.rb",
    "function": "match?",
    "in_app_frame_mix": "system-only",
    "type": "ArgumentError",
    "value": "invalid byte sequence in UTF-8"
  },
  "modules": {
    "actioncable": "6.1.7",
    "actionmailbox": "6.1.7",
    "actionmailer": "6.1.7",
    "actionpack": "6.1.7",
    "actiontext": "6.1.7",
    "actionview": "6.1.7",
    "activejob": "6.1.7",
    "activemodel": "6.1.7",
    "activerecord": "6.1.7",
    "activestorage": "6.1.7",
    "activesupport": "6.1.7",
    "addressable": "2.8.1",
    "bcrypt": "3.1.20",
    "bootsnap": "1.13.0",
    "builder": "3.2.4",
    "bundler": "2.3.5",
    "coderay": "1.1.3",
    "concurrent-ruby": "1.1.10",
    "connection_pool": "2.4.1",
    "crass": "1.0.6",
    "devise": "4.9.3",
    "dotenv": "2.8.1",
    "dotenv-rails": "2.8.1",
    "dry-core": "1.0.0",
    "dry-inflector": "1.0.0",
    "dry-logic": "1.4.0",
    "dry-types": "1.7.0",
    "erubi": "1.11.0",
    "et-orbi": "1.2.7",
    "faraday": "2.6.0",
    "faraday-net_http": "3.0.1",
    "ffi": "1.15.5",
    "firebase": "0.2.8",
    "fugit": "1.9.0",
    "geocoder": "1.8.2",
    "globalid": "1.0.0",
    "google-cloud-env": "2.1.1",
    "google-translate-free": "1.0.1",
    "googleauth": "1.11.0",
    "grape": "1.6.2",
    "grape-entity": "0.10.2",
    "grape_on_rails_routes": "0.3.2",
    "httpclient": "2.8.3",
    "i18n": "1.12.0",
    "jbuilder": "2.11.5",
    "json": "2.7.2",
    "jwt": "2.5.0",
    "loofah": "2.19.0",
    "mail": "2.7.1",
    "marcel": "1.0.2",
    "meta-tags": "2.20.0",
    "method_source": "1.0.0",
    "mini_magick": "4.11.0",
    "mini_mime": "1.1.2",
    "minitest": "5.16.3",
    "msgpack": "1.6.0",
    "multi_json": "1.15.0",
    "mustermann": "3.0.0",
    "mustermann-grape": "1.0.2",
    "mysql2": "0.5.4",
    "nio4r": "2.7.1",
    "nokogiri": "1.13.9",
    "orm_adapter": "0.5.0",
    "os": "1.1.4",
    "paper_trail": "12.3.0",
    "pry": "0.14.1",
    "pry-rails": "0.3.9",
    "public_suffix": "5.0.0",
    "puma": "5.6.8",
    "raabro": "1.4.0",
    "racc": "1.6.0",
    "rack": "2.2.3",
    "rack-accept": "0.4.5",
    "rack-cors": "2.0.1",
    "rack-proxy": "0.7.6",
    "rack-test": "2.0.2",
    "rails": "6.1.7",
    "rails-dom-testing": "2.0.3",
    "rails-html-sanitizer": "1.4.3",
    "railties": "6.1.7",
    "rake": "13.1.0",
    "redis": "4.5.1",
    "request_store": "1.5.1",
    "responders": "3.1.1",
    "ruby2_keywords": "0.0.5",
    "ruby_http_client": "3.5.5",
    "sass-rails": "6.0.0",
    "sassc": "2.4.0",
    "sassc-rails": "2.1.2",
    "semantic_range": "3.0.0",
    "sendgrid-ruby": "6.6.2",
    "sentry-rails": "5.8.0",
    "sentry-ruby": "5.8.0",
    "sidekiq": "6.1.3",
    "sidekiq-cron": "1.9.1",
    "signet": "0.19.0",
    "simple_form": "5.3.0",
    "sprockets": "4.1.1",
    "sprockets-rails": "3.4.2",
    "thor": "1.2.1",
    "tilt": "2.0.11",
    "turbolinks": "5.2.1",
    "turbolinks-source": "5.2.0",
    "tzinfo": "2.0.5",
    "warden": "1.2.9",
    "webpacker": "5.4.4",
    "websocket-driver": "0.7.5",
    "websocket-extensions": "0.1.5",
    "zeitwerk": "2.6.6"
  },
  "nodestore_insert": 1732861523.80369,
  "received": 1732861522.40762,
  "request": {
    "url": "https://api.datpmt.com/api/v2/dictionary/translate",
    "method": "GET",
    "headers": [
      [
        "Accept",
        "*/*"
      ],
      [
        "Accept-Encoding",
        "gzip, deflate, br"
      ],
      [
        "Host",
        "api.datpmt.com"
      ],
      [
        "User-Agent",
        "python-requests/2.31.0"
      ],
      [
        "Version",
        "HTTP/1.0"
      ],
      [
        "X-Forwarded-Proto",
        "https"
      ],
      [
        "X-Request-Id",
        "725b49f1-dad4-405a-96b6-3fdbad21f095"
      ]
    ],
    "env": {
      "SERVER_NAME": "api.datpmt.com",
      "SERVER_PORT": "443"
    }
  },
  "sdk": {
    "name": "sentry.ruby.rails",
    "version": "5.8.0"
  },
  "threads": {
    "values": [
      {
        "id": 41085040,
        "name": "puma srv tp 006",
        "crashed": true,
        "current": true
      }
    ]
  },
  "timestamp": 1732861522,
  "title": "ArgumentError: invalid byte sequence in UTF-8",
  "transaction": "/api/v2/dictionary/translate",
  "transaction_info": {
    "source": "url"
  },
  "type": "error",
  "version": "7"
}

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Nov 29, 2024
@sl0thentr0py
Copy link
Member

ah ok so it is indeed a utf-8 exception. So what happens is that we try to put that into your breadcrumb but since it's not valid json it fails. I'll fix the error here to be an object so you don't get that warning message.

DATA_SERIALIZATION_ERROR_MESSAGE

@sl0thentr0py sl0thentr0py changed the title Sentry has identified the following problems for you to monitor Fix breadcrumb serialization error to be an object Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants