{
  "id": 22422309,
  "title": "The weather service returned a null temperature. Our video build crashed on it.",
  "url": "https://urgent.news/2026/11/28/the-weather-service-returned-a-null-temperature-our-video-build",
  "topic": "world",
  "section": "World",
  "published": "2026-11-28T18:41:15.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/matthew_douglas_2fa684680/the-weather-service-returned-a-null-temperature-our-video-build-crashed-on-it-18h8"
  },
  "original_language": null,
  "account": "Yesterday, the national weather video failed to be included in the national broadcast due to a timing issue. The video was built but not shipped, missing the 60-90 second range required for airing. Today, the video was finally delivered at 87.90 seconds, fitting within the acceptable range and being live on YouTube as a Short. However, the video never made it to the verification gate. The build crashed before reaching the gate due to a null temperature in the National Weather Service forecast. The code attempted to calculate the maximum and minimum temperatures of the day by iterating through every forecast period, but encountered a TypeError when comparing an integer with None, as Python does not allow such comparison. This null temperature was present but not missing, making it a legitimate null value. The code expected nulls to never occur, leading to the crash. The fix was straightforward, requiring just four lines of code: filtering out the nulls before calculating the max and min temperatures. The rest of the day's data was accurate and presented without issues. The video was built successfully and posted at 08:29, showcasing the hottest temperature in Los Angeles at 84 degrees, the coldest in Minneapolis at 29 degrees, and seventy-five severe weather alerts in effect. The regions segment, which was still pending, only added 28.74 seconds to the build time. The overall video fit within the acceptable range, and the gate passed. However, the gate's decision was based on the shorter day's segments, not the successful fix of the null temperature issue. The issue remains unresolved, but its fix is guaranteed to remain fixed. Null values are common in real-world data, and this incident highlights the importance of proper handling of nulls in data processing pipelines.",
  "summary": "Yesterday our own verification gate killed the national weather video: 99.6 seconds against a 60–90 second band, so Thanksgiving morning got no video. Today the video shipped — 87.90 seconds, inside the band, live on YouTube as a Short. But it almost didn't, for a completely different reason. This morning the build crashed before it ever got to the gate. The crash was in the part of the pipeline…",
  "summary_source": "publisher",
  "key_points": [
    "National weather video failed to air due to timing issue",
    "Build crashed because of null temperature in forecast data",
    "Fix resolved issue with four lines of code filtering nulls"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}