Skip to content

Safari bug with addProof #924

@jchris

Description

@jchris

When I create a proof, export it, and import it back I get an IndexedDB error in Safari. The same code works in Chrome.

The error originates here: https://github.com/web3-storage/w3up/blob/3b02c741ec3f86c8e234ade0bf361a0691f3fba6/packages/access-client/src/drivers/indexeddb.js#L105

The error message is: "Failed to store record in an IDBObjectStore: Evaluating the object store's key path did not yield a value."

I tried experimenting with explicit key instead of key path, and that seemed to help with the saving issue, but some other stuff started acting up, so it's probably worth being more intentional in the investigation.

store.put({ id: DATA_ID, ...data }, DATA_ID)

I tried to do an obverable to reproduce, but got a different error: https://observablehq.com/d/806c1c6e5f046039 with delegation from https://observablehq.com/d/578dee9c1b1ce619

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions