---
title: "January 4th incident update"
description: "A refactor of content negotiation on deno.land caused modules under deno.land/x and deno.land/std to be served wrapped in HTML instead of raw code for about 40 minutes on January 4th, 2022."
url: "https://swe.quest/articles/january-4th-incident-update-1b779ff6e99ac77f"
canonical: "https://deno.com/blog/2022-01-04-outage-post-mortem"
source: "Deno"
published: "2022-01-05"
difficulty: "medium"
kind: "Incident"
reading_minutes: 2
tags: ["incident-response","deployment","javascript"]
---

# January 4th incident update

A post on [Deno](https://swe.quest/sources/deno.md), published 2022-01-05, 2 min read, Incident. Original: [https://deno.com/blog/2022-01-04-outage-post-mortem](https://deno.com/blog/2022-01-04-outage-post-mortem)

## Summary

A refactor of content negotiation on deno.land caused modules under deno.land/x and deno.land/std to be served wrapped in HTML instead of raw code for about 40 minutes on January 4th, 2022. The new logic did not account for the Deno CLI and Deno Deploy sending an Accept header that permits all content types, including text/html, and tests had been written against wrong assumptions about those headers. Recovery was slowed because Deno Deploy had no revert capability and the fix itself depended on the broken module hosting, so service was restored by pointing dependencies at an earlier deployment. Follow-ups are new tests for the negotiation logic and a rollback feature for Deno Deploy.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- HTTP content negotiation
- Accept headers

## Keywords

Deno, Deno Deploy, deno.land, Accept header

## Related posts

- [March 2 incident update](https://swe.quest/articles/march-2-incident-update-65a8001bd7d767d2.md): Deno · 2021-03-04 · Medium · 4 min read · Incidents & postmortems, CDN & edge, Serverless, JavaScript
  A 98-minute outage of deno.land media, deno.land/x and deno.land/std module serving, doc.deno.land and cdn.deno.land was caused by a faulty Cloudflare abuse-prevention filter.
- [Deno 1.17 Release Notes](https://swe.quest/articles/deno-1-17-release-notes-929f0a10af6b0b31.md): Deno · 2021-12-16 · Medium · 13 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools
  Deno 1.17 adds import assertions and JSON modules (static JSON imports need no permissions), expands the Web Cryptography API with RSA, AES and EC key import/export and unwrapping, and introduces a --no-check=remote flag that discards type-check diagnostics from remote dependencies.
- [July 27 incident update](https://swe.quest/articles/july-27-incident-update-43d6080a1344538d.md): Deno · 2021-07-27 · Easy · 2 min read · Incidents & postmortems, Schema migrations, Deployment
  A database schema change that dropped a column and replaced it with another, deployed at the same time as code using the new column, took Deno Deploy projects and deno.land down for 6 minutes on July 27, 2021.
- [Deno 1.46: The Last 1.x Release](https://swe.quest/articles/deno-1-46-the-last-1-x-release-18f40edf9755fd08.md): Deno · 2024-08-22 · Medium · 16 min read · JavaScript, TypeScript, Developer tools, Runtimes & VMs
  Deno 1.46, the final 1.x release, lets programs run with plain \`deno file.ts\`, runs tasks via \`deno run\`, and adds one-letter permission flags (-R, -W, -E, -N, -S) that can be combined and given allow lists. \`deno serve --parallel\` runs one single-threaded JS runtime copy per core, with the count set by DENO\_JOBS. \`deno fmt\` gains unstable formatting for HTML, CSS, YAML and component files.
- [What we got wrong about HTTP imports](https://swe.quest/articles/what-we-got-wrong-about-http-imports-313ba3cefc7f7089.md): Deno · 2024-07-29 · Easy · 6 min read · JavaScript, Build systems, TypeScript
  Deno's original module system of direct HTTP URL imports didn't scale.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
