Skip to content

Instantly share code, notes, and snippets.

@kalv
Created February 14, 2011 18:11
Show Gist options
  • Save kalv/826280 to your computer and use it in GitHub Desktop.
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)
# 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
source :rubygems
gem 'exceptional'
gem 'json'
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