Skip to content

v0.3.1

Choose a tag to compare

@xgame92 xgame92 released this 16 Nov 09:57
1d84a1e

A database read that fails in passing is asked again instead of becoming an error, and a query
that fails for good no longer logs or answers with its values. There is no migration in this
release.

Fixed

  • An error because one database read failed. When a single read from D1 failed, a page, a
    scan step or an assistant's call was an error although asking again would have worked. A plain
    read (one SELECT statement) that fails with one of the errors Cloudflare documents as passing
    is now sent up to three times, a moment apart. Writes, batches and any other error are sent
    once, as before. (#20)
  • A failed database query no longer carries its values. When a query failed for good, the
    error held the statement and its values. Replacing a connection's token could log the token in
    its encrypted form with its last four characters, a failed read of a session or a refresh token
    was logged with its value, and /mcp could answer an assistant with the database's own
    message. A failure now carries a reference only. The log has the kind of failure and the
    statement without its values under the same reference; a page shows a plain sentence with it.
    To see whether a server ever logged one, search its logs for Failed query:.
    (#20)

If you run your own

  • Nothing to do. If a page shows a reference, the line with the same reference in the
    Worker's logs says what failed.