Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Error from ssb-conn-db's atomic-file-codecs #307

Open
KyleMaas opened this issue Jul 6, 2021 · 0 comments
Open

Error from ssb-conn-db's atomic-file-codecs #307

KyleMaas opened this issue Jul 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@KyleMaas
Copy link
Collaborator

KyleMaas commented Jul 6, 2021

Well, this is one I haven't seen before. This is on the current fix-missing-description branch for #305 and popped up when I first launched a new private tab running ssb-browser-demo in Chromium. At this point, I had not approved the "Store files on this device" popup.

bundle-ui.js:138459 Uncaught TypeError: Cannot read property 'toString' of undefined
    at Object.decode (bundle-ui.js:138459)
    at bundle-ui.js:138567
    at bundle-ui.js:25842
    at intercept (bundle-ui.js:102840)
    at IDBRequest.request.onsuccess (bundle-ui.js:69450)
decode @ bundle-ui.js:138459
(anonymous) @ bundle-ui.js:138567
(anonymous) @ bundle-ui.js:25842
intercept @ bundle-ui.js:102840
request.onsuccess @ bundle-ui.js:69450
IndexedDB (async)
(anonymous) @ bundle-ui.js:69443
Transaction._init @ bundle-ui.js:69352
onsuccess @ bundle-ui.js:69181
IndexedDB (async)
IdbKvStore @ bundle-ui.js:69156
getStoreAndKey @ bundle-ui.js:25827
readFile @ bundle-ui.js:25838
(anonymous) @ bundle-ui.js:138561
(anonymous) @ bundle-ui.js:138524
(anonymous) @ bundle-ui.js:25842
intercept @ bundle-ui.js:102840
request.onsuccess @ bundle-ui.js:69450
IndexedDB (async)
(anonymous) @ bundle-ui.js:69443
Transaction._init @ bundle-ui.js:69352
onsuccess @ bundle-ui.js:69181
IndexedDB (async)
IdbKvStore @ bundle-ui.js:69156
getStoreAndKey @ bundle-ui.js:25827
readFile @ bundle-ui.js:25838
_fileExists @ bundle-ui.js:138520
(anonymous) @ bundle-ui.js:138530
(anonymous) @ bundle-ui.js:138524
(anonymous) @ bundle-ui.js:25842
intercept @ bundle-ui.js:102840
request.onsuccess @ bundle-ui.js:69450
IndexedDB (async)
(anonymous) @ bundle-ui.js:69443
Transaction._init @ bundle-ui.js:69352
onsuccess @ bundle-ui.js:69181
IndexedDB (async)
IdbKvStore @ bundle-ui.js:69156
getStoreAndKey @ bundle-ui.js:25827
readFile @ bundle-ui.js:25838
_fileExists @ bundle-ui.js:138520
_init @ bundle-ui.js:138529
ConnDB @ bundle-ui.js:138513
CONN @ bundle-ui.js:139870
init @ bundle-ui.js:131743
(anonymous) @ bundle-ui.js:131811
create @ bundle-ui.js:131810
exports.init @ bundle-ui.js:137372
(anonymous) @ bundle-ui.js:136990
emit @ bundle-ui.js:64065
(anonymous) @ bundle-ui.js:136238
Promise.then (async)
(anonymous) @ bundle-ui.js:136235
(anonymous) @ bundle-ui.js:136248
(PATH-REDACTED)ssb-browser-demo/node_modules/sodium-browserify/index.js../browser @ bundle-ui.js:136248
o @ bundle-ui.js:1
(anonymous) @ bundle-ui.js:1
(PATH-REDACTED)ssb-browser-demo/node_modules/chloride/browser.js.sodium-browserify @ bundle-ui.js:54041
o @ bundle-ui.js:1
(anonymous) @ bundle-ui.js:1
(anonymous) @ bundle-ui.js:143931
(anonymous) @ bundle-ui.js:144102
(PATH-REDACTED)ssb-browser-demo/node_modules/ssb-keys/index.js../sodium @ bundle-ui.js:144102
o @ bundle-ui.js:1
(anonymous) @ bundle-ui.js:1
module.exports.initSSB @ bundle-ui.js:138169
module.exports.getSSB @ bundle-ui.js:138244
checkSSBEventually @ bundle-ui.js:138274
bundle-ui.js:102837 Uncaught (in promise) DOMException: Uncaught exception in event handler.

The end of the stack trace points to this line:

https://github.com/staltz/ssb-conn-db/blob/481f3a247bdec757342656b1fedeafc5d60ca54e/src/atomic-file-codecs.ts#L12

@KyleMaas KyleMaas added the bug Something isn't working label Jul 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant