couchdb-fauxton icon indicating copy to clipboard operation
couchdb-fauxton copied to clipboard

firefox: 'this.getEditor() is null' if doc._id is 'settings'

Open kinesias opened this issue 5 years ago • 5 comments

This seems to be a Firefox > 65 issue. I have a document with the _id 'settings'. If I open the doc in Firefox via Fauxton, the entire page becomes blank and I get the following stacktrace in the console:

TypeError: "this.getEditor(...) is null"
    value http://127.0.0.1:5984/_utils/dashboard.assets/js/bundle.89dbadd64e69e0df7653.js:1
    Dn http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    Gn http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    Yn http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    hr http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    lr http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    ar http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    ir http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    Zn http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    enqueueSetState http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:88
    setState http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:96
    onStateChange http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:57
    notify http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:96
    notifyNestedSubs http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:96
    onStateChange http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:57
    l http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:57
    r http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:96
    reduxDispatch http://127.0.0.1:5984/_utils/dashboard.assets/js/bundle.89dbadd64e69e0df7653.js:1
    fetchSelectedDatabaseInfo http://127.0.0.1:5984/_utils/dashboard.assets/js/bundle.89dbadd64e69e0df7653.js:1
vendor.9993972098ce728e0fc2.js:80:164186

This error only happens if the doc._id is 'settings'. It does however work perfectly in Safari and Chrome.

Environment: Fauxton on Apache CouchDB v.2.3.1 MacOS 10.13.6

kinesias avatar Jun 08 '19 11:06 kinesias

@kinesias What was the database name? Are you still able to reproduce the error?

popojargo avatar Jul 08 '19 02:07 popojargo

Now, I know why this is happening: it occurs when a document has CONFLICTs: if a document is in conflict mode, I get a white screen of death -- but only in Firefox.

kinesias avatar Jul 30 '19 11:07 kinesias

I just hit this (Firefox 69), and yes it turned out to be a conflict. Is there a workaround? (Other than having to open fauxton in chrome and tell it to resolve all conflicts.)

DarrenCook avatar Nov 20 '19 08:11 DarrenCook

I think this error still persists, is there any update?

imnotteixeira avatar Feb 22 '21 21:02 imnotteixeira

This is happening in Chrome 91.0.4472.114.

dianabarsan avatar Jun 23 '21 13:06 dianabarsan