Bug Found & Fixed

29 Mar 2019

There have been record number of visitors to the Downtime Monkey website 3 months running and this is great - thanks to everyone who is using our service!

A knock-on effect is that a couple of minor bugs were brought to our attention - they were both edge-cases that only showed up in specific circumstances. Here are the details of the first one...

bug

Unnecessary Warnings Output On Page

Users from some countries noticed a warning output at the top of the home page the first time they visited the site.

The error message was along the lines: "IP API failed to open stream - too many requests" but with some programming jargon thrown in.

What was the cause?

Since Downtime Monkey is a worldwide service we deliver different content to users in each country. For example, users in the United States want to see prices in US$, users in Europe want to see prices in € and users in Bermuda want to see prices in BD$ while sipping drinks at the beach.

To deliver the correct content the site checks the IP address of the user, uses an API to find their country and serves them the correct page.

Occasionally though, our first choice of API is busy. No problem - in this case we have a fallback (and a fallback to the fallback) where another API is used.

However, what we didn't notice was that, under some circumstances, when the fallback was needed a warning was output to the page. Obviously this didn't give the best user experience - the warning wouldn't make much sense to anyone who isn't a web developer and the site was working fine so no need for a warning at all!

Why was it missed?

It was missed because the warning was only seen by users in a few countries (it was specific to certain country pages), only when the API fallback was needed and only the first time a user visited the website.

Easy Fix

Once we were aware of the bug it was easily fixed - no more unnecessary error messages.

We'll bring you details of the other bugfix in our next blog - watch this space...

All Posts

 Website Monitoring Prices Compared

 Greatly Reduced Server Loads

 Monitoring URLs With Query Strings

 New Year's Carbon Offsetting

 Keeping Your Web Host Honest

 New Pro Plans For EU Individuals

 New Downtime Alert Options

 New SMS Provider for the US

 Free & Pro Monitoring Compared

 New SCA-ready Payments System

 Global Website Monitoring

 Downtime Alerts: An Ideal Custom Setup

 Server Upgrade & IP Address Change

 Website Monitoring: Cheap vs Free

 Improvements & Bugfixes

 Website Content (Keyword) Monitoring

 Cheap Website Monitoring Pro Plans

 Spring Cleaning = Bug Fixing

 Bug Found & Fixed

 Server Upgrade Scheduled Completed

 Whitelist Email Addresses in cPanel

 Monitoring Software Awards

 Website Downtime Alerts To Slack

 Whitelist Email Addresses: Thunderbird

 Monitor Response Time

 Whitelist Email Addresses in Yahoo Mail

 How we improved accessibility by 42%

 Whitelist Email Addresses in Outlook

 Whitelist Email Addresses In Gmail

 Why Whitelist An Email Address?

 User Interface Improvements

 Free Email Support For All

 When is a website considered down

 Bulk import, edit and delete monitors

 Privacy, democracy & bureaucracy

 How Much Downtime is Acceptable?

 Feature: Custom Alert Times

 Server Upgrade Scheduled Completed

 Free Plan Upgraded to 60 Monitors

 New Feature: Rate Limit SMS Alerts

 How We Boosted Page Speed By 58%

 How To Reduce Website Downtime

 Making the Monkey

 How To Monitor A Website

 5 Tips for Website Internationalisation

 We're Live...

 Initial Development Completed