---
title: "Discussion on \"When \"Opening Never Throws\" Still Threw: sql.js and a Damaged B-Tree Page\" | Hashnode"
description: "Discussion on \"When \"Opening Never Throws\" Still Threw: sql.js and a Damaged B-Tree Page\". I build a browser tool that opens Audacity .aup3 / .aup4 projects. The projects are SQLite databases. One of the rules the recovery flow depends on is written at the top of the archive module and in t"
url: "https://hashnode.com/posts/when-opening-never-throws-still-threw-sql-js-and-a-damaged-b-tree-page/6af12bbfa4feda9a1d3e7a9f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [When "Opening Never Throws" Still Threw: sql.js and a Damaged B-Tree Page](https://leivertri.hashnode.dev/when-opening-never-throws-still-threw-sql-js-and-a-damaged-b-tree-page?utm_source=hashnode&utm_medium=feed)

I build a browser tool that opens Audacity .aup3 / .aup4 projects. The projects are SQLite databases. One of the rules the recovery flow depends on is written at the top of the archive module and in t

Nov 9 · 5 min read · leivertri.hashnode.dev  
Read the article

-   [#sqlite](https://hashnode.com/tag/sqlite)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Lei Vertri](https://hashnode.com/@leivertri)

@leivertri

  
[View profile](https://hashnode.com/@leivertri)

## Responses 1

Markdown supported · ⌘↵ to post

[Rishabh Mishra](https://hashnode.com/@rushdeploy)

[Nov 9](https://hashnode.com/posts/when-opening-never-throws-still-threw-sql-js-and-a-damaged-b-tree-page/6af12bbfa4feda9a1d3e7a9f/comment/6af137297d64feecc5f2b5e4)

The empty-list fix is the right call, since the summary queries were the only thing standing between a damaged file and the health report. One thing I would also pin down is the paged reader's historyRows throw, so a stray -wal file does not silently change which copy opens. The damaged-fixture tests are a good guard for that.
