keolo/mixpanel_client — Issue #5: JSON error when Mixpanel API is down
Author: Cev
Created: 2011-11-16 20:25:31+00:00
State: open

When the Mixpanel API is down for maintenance or whatever, API requests return HTML instead of JSON, causing json.parse to fail and the resulting error to bubble up to my application.

Can we tweak the MP API or put all mixpanel_client related errors in one namespace so I have only one thing to catch in my app?

Error
=====
exception type JSON::ParserError

743: unexpected token at '

Mixpanel | Real-time Web Analytics, Funnel Analysis

[...] Your real-time analytics will be back soon. [...] '