Email notifications for HTTP status codes != 2XX or 3XX

  • 4
  • Idea
  • Updated 2 years ago
I just had a major emergency this morning when a host that had some of my static content (images and RSS layouts) went down. I was made aware of it by the client five minutes before someone was scheduled to tour their office specifically to see the signs. For some reason the signs did not load the content from cache.

A great feature for the Rise client would be, instead of just failing to load the content, any HTTP status code other than 2XX (success) or 3XX (redirect) would produce an immediate email notification so maintainers like myself would know something is wrong before the client does.

If you bring up the dev console for the player and look at the network tab it will show the HTTP status codes for all requests. Ideally they should all be 200, or in rare cases a 30X. Anything else is an error and fairly descriptive of the problem on their own so nothing elaborate would have to be parsed.

I propose a small script or service running that monitors each request and if the status code does not match that of a successful request an email is sent out with the following:

Warning: A request made by your presentation as returned an HTTP error.
The details of the errors are:
Display: `$displayName`
Presentation: `$presentationName`
Placeholder: `$placeHolderName`
Widget: `$widgetType`, `$widgetName`
Request URI: `$requestURI`
Status: `$errorCode`
Time: `$errorTime`

Which would look something like this in an email:


Warning: A request made by your presentation as returned an HTTP error.
The details of the errors are:
Display: First Floor Lobby
Presentation: Public_Presentation
Placeholder: News_Large
Widget: RSS, Local_News
Request URI: http://example.com/rss_layouts/news.rss.layout
Status: (failed) net::ERR_CONNECTION_REFUSED
Time: 7/15/2016 9:57AM PDT

This would be so invaluable to me that I would be willing to pay a small subscription fee for it.
Photo of Chris - Fantastitech

Posted 2 years ago

  • 4
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Hi Chris,

Thanks for posting!

If anyone else has similar email notification ideas or any other suggestions, feel free to comment.

Hannah