Created
February 14, 2011 18:11
-
-
Save kalv/826280 to your computer and use it in GitHub Desktop.
Errors containing invalid UTF8 appear to break getexceptional (i.e. they don't appear in the interface)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logfile created on Mon Feb 14 18:10:33 +0000 2011 by logger.rb/22285 | |
[INFO] (remote.rb:39:in `call_remote') Mon Feb 14 18:10:33 UTC 2011 - /api/errors?api_key=YOUR-API-KEY&protocol_version=5 - OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'exceptional' | |
gem 'json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler/setup' | |
require 'exceptional' | |
Exceptional.configure('YOUR-API-KEY') | |
exception = StandardError.new("This string has bad UTF8 #{[0b1101_1111, 0b1101_1111].pack('C*')}") | |
data = Exceptional::ExceptionData.new(exception, 'name') | |
Exceptional::Remote.error(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment