{"action":"opened","issue":{"url":"https://api.github.com/repos/getsentry/raven-ruby/issues/821","repository_url":"https://api.github.com/repos/getsentry/raven-ruby","labels_url":"https://api.github.com/repos/getsentry/raven-ruby/issues/821/labels{/name}","comments_url":"https://api.github.com/repos/getsentry/raven-ruby/issues/821/comments","events_url":"https://api.github.com/repos/getsentry/raven-ruby/issues/821/events","html_url":"https://github.com/getsentry/raven-ruby/issues/821","id":312831813,"number":821,"title":"scrub!': can't modify frozen String (RuntimeError)","user":{"login":"thde","id":1387040,"avatar_url":"https://avatars3.githubusercontent.com/u/1387040?v=4","gravatar_id":"","url":"https://api.github.com/users/thde","html_url":"https://github.com/thde","followers_url":"https://api.github.com/users/thde/followers","following_url":"https://api.github.com/users/thde/following{/other_user}","gists_url":"https://api.github.com/users/thde/gists{/gist_id}","starred_url":"https://api.github.com/users/thde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thde/subscriptions","organizations_url":"https://api.github.com/users/thde/orgs","repos_url":"https://api.github.com/users/thde/repos","events_url":"https://api.github.com/users/thde/events{/privacy}","received_events_url":"https://api.github.com/users/thde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-10T08:59:13Z","updated_at":"2018-04-10T08:59:13Z","closed_at":null,"author_association":"NONE","body":"Hey, I just stumbled over this exception which should been fixed since 2.7.0 (https://github.com/getsentry/raven-ruby/issues/757):\r\n\r\n````\r\nvendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:42:in `scrub!': can't modify frozen String (RuntimeError)\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:42:in `remove_invalid_bytes'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:30:in `process'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:12:in `block in process'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:12:in `merge!'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:12:in `process'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:12:in `block in process'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:12:in `merge!'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:12:in `process'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:12:in `block in process'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:12:in `merge!'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/processor/utf8conversion.rb:12:in `process'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/client.rb:63:in `block in encode'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/client.rb:63:in `each'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/client.rb:63:in `reduce'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/client.rb:63:in `encode'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/client.rb:34:in `send_event'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/instance.rb:81:in `send_event'\r\n        from ... /vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.7.1/lib/raven/instance.rb:126:in `capture_type'\r\n       from /usr/lib/ruby/2.3.0/forwardable.rb:204:in `capture_exception'\r\n````\r\n\r\nIt seems that the exception can still occur if the following two `if` statements return `false`:\r\n\r\nhttps://github.com/getsentry/raven-ruby/blob/a365e13b5f1e948dd3702b1caa651d41e7d4aabd/lib/raven/processor/utf8conversion.rb#L25\r\n\r\nhttps://github.com/getsentry/raven-ruby/blob/a365e13b5f1e948dd3702b1caa651d41e7d4aabd/lib/raven/processor/utf8conversion.rb#L29"}}
{"actor":{"display_login":"thde"}}