You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#145 Failsafe from rollbar-gem. ArgumentError: "invalid byte sequence in UTF-8" in /usr/local/rvm/gems/ruby-2.2.1/gems/rollbar-2.7.1/lib/rollbar/request_data_extractor.rb:197:in `=~': build_payload in exception_data
#389
Closed
i-void opened this issue
Feb 22, 2016
· 3 comments
@jondeandres I found the problem. '=~' operator doesn't work on non UTF-8 encodings. We try sending data to rollbar which we get from an external service. This service sends us ISO-8859-9 encoded data. I solved my problem by force_encode('ISO-8859-9').encode('UTF-8').
If you want to solve this globally, you can reproduce the error by doing these;
create a file in text editor
write into it 'ŞşĞğİıÇçÜü' and save as ISO-8859-9 (Turkish) encoded
in a ruby script File.read() this file
try to use '=~' operator on taken string
If you can solve this, can you share with me? I would be very appreciate.
We are getting this error so much. Once every 20 minute. What is the reason of this error, how can we avoid this?
The text was updated successfully, but these errors were encountered: