TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

BBC website (no longer) returning a JSON weather forecast by mistake, sometimes

3 pointsby naggiealmost 6 years ago

1 comment

naggiealmost 6 years ago
Looks like they fixed it. It was returning:<p><pre><code> {&quot;forecasts&quot;:{&quot;day1&quot;:{&quot;dayNameAbbreviation&quot;:&quot;Tue&quot;,&quot;day&quot;: {&quot;weatherType&quot;:&quot;Sunny&quot;,&quot;weatherCode&quot;:1,&quot;maxTemperature&quot;:31},&quot;night&quot;:{&quot;weatherType&quot;:&quot;Thundery Showers&quot;,&quot;weatherCode&quot;:28,&quot;minTemperature&quot;:17}},&quot;day2&quot;:{&quot;dayNameAbbreviation&quot;:&quot;Wed&quot;,&quot;day&quot;: {&quot;weatherType&quot;:&quot;Sunny&quot;,&quot;weatherCode&quot;:1,&quot;maxTemperature&quot;:29},&quot;night&quot;:{&quot;weatherType&quot;:&quot;Clear Sky&quot;,&quot;weatherCode&quot;:0,&quot;minTemperature&quot;:15}},&quot;day3&quot;:{&quot;dayNameAbbreviation&quot;:&quot;Thu&quot;,&quot;day&quot;:{&quot;weatherType&quot;:&quot;Sunny&quot;,&quot;weatherCode&quot;:1,&quot;maxTemperature&quot;:34},&quot;night&quot;:{&quot;weatherType&quot;:&quot;Partly Cloudy&quot;,&quot;weatherCode&quot;:2,&quot;minTemperature&quot;:17}}},&quot;location&quot;:{&quot;id&quot;:&quot;rh16&quot;,&quot;locationName&quot;:&quot;RH16&quot;}} </code></pre> It seemed to be load balancing my requests, sometimes I got JSON and sometimes the expected web page.