-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Occur Encoding::UndefinedConversionError when include escaped string in request #1303
Comments
@keisuke-koshikawa are you using |
@st0012 |
@keisuke-koshikawa I can reproduce errors with escaped characters, but with a different error: |
@st0012 but I found a request when I was testing. I use graphql-ruby.
|
Any updates on this issue? I'm facing the same problem using
|
Looking the traceback the problem occurs in a
|
@keisuke-koshikawa sorry for the delay. what version are you using now? I tried setting the data you gave to a request and it got processed successfully: this is the event json:
|
@maheskett thanks for reporting this. can you also create a sample app that can reproduce the issue? I also can't reproduce your case I think it has something to do with the request pipeline or encoding setting in the application, like something escaped the request string first and made it invalid. so it'd be very helpful if I can have an app to reproduce the issue 🙂 |
Closing because I'm unable to reproduce this issue. If you still have this issue please leave a comment. I'll reopen it and work with you to reproduce it 🙂 |
Describe the bug
I try to catch exception with Sentry.capture_exception but occured Encoding::UndefinedConversionError.
After investigating, the error occurred because it contained an escaped string such as \ xE3 in event_hash.
https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/lib/sentry/transport.rb#L58
error log
To Reproduce
request string include an escaped string such as \ xE3, \xE5.
Expected behavior
I`d like to avoid the error even if it contains escaped strings.
Actual behavior
occur Encoding::UndefinedConversionError - "\xE5" from ASCII-8BIT to UTF-8 if event_hash contain escaped string such as \ xE3, \xE5.
Environment
Raven Config
This is not necessary but could be helpful.
The text was updated successfully, but these errors were encountered: