DevDisasters

An Epic FAIL for this Web Service

The office where Peter L. works was abuzz with excitement one morning a few months ago when the familiar, bland corporate art was missing from the wall opposite the elevators. In its place was a brand new 50-inch Plasma TV. Someone who lived nearby offered to run home and grab his Xbox for a little lunchtime gaming.

The big reveal happened later that day when Peter launched the server process that provided a continuous feed of the company's metrics through a dashboard displayed in stunning 1080p resolution. Everyone was amazed by the eye-catching graphs -- and impressed that Peter was able to include some extras like local weather, stock prices and a daily "Trivia Challenge."

Garbage in, Beauty Out
The new system relied on a bidirectional data feed run by an outside vendor. Automated processes fetched and uploaded data from local sources. Every 15 minutes, another automated process fetched the latest round of graphs and slides from a Web service.

Peter loved the interface and management loved the results. However, those warm feelings all went away one day when the Web service decided to fail spectacularly and returned the following:

<?xml version="1.0"?>
<HttpResponse>
<StatusCode>InternalServerError</StatusCode>
<StatusDescription>Internal Server Error</StatusDescription> 
<WebHeaders>
<X-Backside-Transport>FAIL FAIL,FAIL FAIL,FAIL FAIL</X-Backside-Transport>

To make matters worse, rather than show an old set of metrics and graphs -- presumably owing to some bug -- the screen showed the contents of the XML file.

Frustrated, Peter contacted the vendor's IT support. The technician explained that they were aware of the issue and were working toward a solution. As Peter would undoubtedly have to report the status of the Web service, which was deemed "mission-critical" to his higher ups, he asked for an ETA on a fix. The support guy replied, "We're close! You should see something soon!" Peter hung up the receiver and waited … for what, though, he wasn't sure.

Waiting and Waiting...
About two and a half hours and four cups of coffee later, a jittery Peter clicked his mouse and tried calling the Web service for what must have been the 10,000th try, pacing nervously from his desk to the hallway to see if anything had changed. Much to his surprise, this time, the reply from the service was different:

<?xml version="1.0"?>
<HttpResponse>
<StatusCode>OK</StatusCode>
<StatusDescription>OK</StatusDescription>
<WebHeaders>
<X-Backside-Transport>OK OK,OK OK,OK OK</X-Backside-Transport>

If this was the back-end XML that nobody ever saw, Peter might have been doing a dance of joy at that point, but unfortunately things weren't exactly, well, "OK." Viewers were still being treated to almost the same raw, incomplete XML as before, just this time with OK in place of the Error/FAIL messages.

Helpful Advice
Peter contacted support again. The technician explained that the issue was still under investigation and the only "fix" made so far was to change the status codes to something more "friendly" and also to show that they were working on it. He suggested Peter keep checking the Web service, and that he might want to find an alternate media source in the meantime until the problem could be resolved.

As Peter hung up, he wondered if his coworker's offer to fetch his Xbox was still on the table.

About the Author

Mark Bowytz is a contributor to the popular Web site The Daily WTF. He has more than a decade of IT experience and is currently a systems analyst for PPG Industries.

comments powered by Disqus

Featured

  • Microsoft Eases Integration with Semantic Kernel AI SDK

    The basic idea is to provide unified API abstractions, especially for idiomatic C# code, to help platform developers and others work with any provider with standard implementations for caching, telemetry, tool calling and other common tasks.

  • Final .NET 9 Preview Ships with Go-Live License

    Visual Studio developers can now download the SDK for .NET 9 Release Candidate 2 with a go-live license, meaning devs get Microsoft support for production applications even before the framework reaches general availability next month.

  • Upcycle Your Old Laptops into a Kubernetes Cluster

    Learn about Windows-to-Linux conversions and how to break and fix cloud containers -- all while helping to save the world from e-waste with some "sheer geeky fun."

  • Visual Studio's Future: Live Help to 'AI-ify Your App'

    Visual Studio guru Mads Kristensen provided a peek into the IDE's AI future, explaining how while in live-coding it will identify opportunities for your own app to use AI to your advantage.

Subscribe on YouTube