Try Exceptional from the command-line

Make sure to swap in your API key

curl -H "Content-Type: text/xml" -vvvvvvvvvvX \
POST "http://getexceptional.com/errors/?api_key=YOUR_API_KEY&protocol_version=2" \
-d "<?xml version=\"1.0\" encoding=\"UTF-8\"?><error><agent_id>000</agent_id>
<controller_name>Foo</controller_name>
<action_name>bar</action_name>
<error_class>DodgyException</error_class>
<message>this is awesome</message>
<backtrace>the craziness</backtrace>
<occurred_at>Thu Sep 11 16:05:53 -0400 2008</occurred_at>
<rails_root>/var/www/woo/woo/woo</rails_root>
<url>http://www.getexceptional.com</url>
<environment>
  <server_name>lovely</server_name>
  <foo>nice</foo>
</environment>
<session>
  <foo>bar</foo>
</session>
<parameters>POST DATA</parameters>
</error>"

Pretty sweet. Thanks to Jan Lehnardt

2 Responses to “Try Exceptional from the command-line”

  1. Geoffrey Grosenbach Says:

    Sometimes I want to rescue an error, but still log it to Exceptional. I'm doing this in a controller:

    http://gist.github.com/14585

  2. Paul Campbell Says:

    Sweet, Geoffrey, hope that's working out.

    Our new plugin has support for this baked right in, along with a non-plugin gem for use in non-Rails environments.

    We're releasing the documentation this week.

Leave a Reply