Public API Outages

23 views
Skip to first unread message

Mobijack

unread,
Dec 15, 2012, 6:04:07 AM12/15/12
to wallabee-...@googlegroups.com
Hi,

During times when the Public API is not available, is there a reliable way to programatically determine the API is down?

This is so we can elegantly report to the user that the service isn't available from 3rd Party UIs.

Thanks,

Jonathan
@mobijack 

Ben Dodson

unread,
Dec 15, 2012, 6:56:58 AM12/15/12
to wallabee-...@googlegroups.com
Hey Jonathan,

You should be able to check the HTTP status code as this will always give an indicator if the API is down. I've updated the down status today so that you'll get a 500 code (and you'll get the usual error payload as well so this may stop your crashes). Obviously we can't always guarantee that the error payload will be there but if you check to make sure status is 200 then that will always work (as even if the server shuts down, you'll get a HTTP code back).

Ben
Reply all
Reply to author
Forward
0 new messages