apache / apache/pouchdb

bug: error preparing Blob/File data to be stored in object store

Open
#9,167 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

### Issue

iOS + Capacitor + Pouch - attachments storage causes intermittent app crash:

> error preparing Blob/File data to be stored in object store

Related issues:

(latest): https://github.com/dexie/Dexie.js/issues/1919
https://github.com/dexie/Dexie.js/issues/1227
https://bugs.webkit.org/show_bug.cgi?id=188438
https://github.com/localForage/localForage/issues/834

As in the top link, storing attachments into indexedDB as **non blob** e.g. B64 appears to resolve the issue (though less efficient). I cannot see an obvious way to more directly tell pouch in a given environment to not use blob storage.

### Info

- Environment: Capacitor iOS
- Platform: Safari WebKit
- Adapter: indexeddb (I think)
- Server: CouchDB

### Reproduce

We are seeing the issue intermittently and cannot reliably recreate.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.