You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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).