Third-Party API Outage That Was Mistaken for Own Code
Four hours of debugging internal code before realizing the root cause was a third-party geolocation API silently returning stale data.
Overview
A geolocation vendor quietly started answering 'US' for every ZIP code, and international orders were priced as domestic while every test still passed.
What happened
Support tickets spiked: shipping costs for international orders came back as zero. The team spent the first two hours looking at their own code, and they worked through four checks.
- Recent deployments: the last deploy was 72 hours earlier, too long ago to explain a fresh spike.
- Pricing service code: reviewed, and nothing was wrong.
- Replayed requests in staging: they passed.
- Integration tests: they passed too.
The answer turned up in hour three. The geolocation API was returning 'US' for every ZIP code. Looking back, the vendor had posted a changelog entry three days earlier, filed under 'improvement'.
Key concepts
- Silent behavioral change
- Consumer-driven contract testing
- Canary value monitoring
Interview questions
- How would you design monitoring to detect silent behavioral changes in a third-party API?
Sign up free to read the full topic
More War Stories topics
- NAT Gateway Port Exhaustion Under Bursty Lambda Traffic
- Node.js Memory Leak That Required Daily Restarts
- Public S3 Bucket Exposed Customer PII for 8 Months
- Silent Data Corruption from an Off-By-One Migration
- Single-Region Dependency That Caused a Global Outage
- The Cascade That Took Down Three Services
- Thundering Herd After a Cache Cluster Restart
- TLS Certificate Expiry That Took Down an Internal API
Start free on Cariara · Coding problems · System design studio